Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CMake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Golden
CMake
Commits
d50cbbb0
Commit
d50cbbb0
authored
9 years ago
by
Matt McCormick
Browse files
Options
Downloads
Patches
Plain Diff
FindDCMTK: Obey QUIET option for find_package.
parent
31b4700e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/FindDCMTK.cmake
+17
-5
17 additions, 5 deletions
Modules/FindDCMTK.cmake
with
17 additions
and
5 deletions
Modules/FindDCMTK.cmake
+
17
−
5
View file @
d50cbbb0
...
...
@@ -135,18 +135,27 @@ set(_SAVED_DCMTK_DIR ${DCMTK_DIR})
#
# Step1: Attempt to find a version of DCMTK providing a DCMTKConfig.cmake file.
#
message
(
STATUS
"Trying to find DCMTK expecting DCMTKConfig.cmake"
)
if
(
NOT DCMTK_FIND_QUIETLY
)
message
(
STATUS
"Trying to find DCMTK expecting DCMTKConfig.cmake"
)
endif
()
find_package
(
DCMTK QUIET NO_MODULE
)
if
(
DCMTK_FOUND
AND NOT
"x"
STREQUAL
"x
${
DCMTK_LIBRARIES
}
"
AND NOT
"x"
STREQUAL
"x
${
DCMTK_INCLUDE_DIRS
}
"
)
message
(
STATUS
"Trying to find DCMTK expecting DCMTKConfig.cmake - ok"
)
if
(
NOT DCMTK_FIND_QUIETLY
)
message
(
STATUS
"Trying to find DCMTK expecting DCMTKConfig.cmake - ok"
)
endif
()
return
()
else
()
message
(
STATUS
"Trying to find DCMTK expecting DCMTKConfig.cmake - failed"
)
if
(
NOT DCMTK_FIND_QUIETLY
)
message
(
STATUS
"Trying to find DCMTK expecting DCMTKConfig.cmake - failed"
)
endif
()
endif
()
message
(
STATUS
"Trying to find DCMTK relying on FindDCMTK.cmake"
)
if
(
NOT DCMTK_FIND_QUIETLY
)
message
(
STATUS
"Trying to find DCMTK relying on FindDCMTK.cmake"
)
endif
()
# Restore the value reset by the previous call to 'find_package(DCMTK QUIET NO_MODULE)'
set
(
DCMTK_DIR
${
_SAVED_DCMTK_DIR
}
CACHE PATH
${
_dcmtk_dir_description
}
FORCE
)
...
...
@@ -340,6 +349,7 @@ if(DCMTK_FOUND AND UNIX AND NOT APPLE)
set
(
CMAKE_REQUIRED_DEFINITIONS
)
set
(
CMAKE_REQUIRED_INCLUDES
${
DCMTK_INCLUDE_DIRS
}
)
set
(
CMAKE_REQUIRED_LIBRARIES
${
DCMTK_LIBRARIES
}
)
set
(
CMAKE_REQUIRED_QUIET
${
DCMTK_FIND_QUIETLY
}
)
check_cxx_source_compiles
(
"#include <dcmtk/config/osconfig.h>
\n
#include <dcmtk/ofstd/ofstream.h>
\n
int main(int,char*[]){return 0;}"
DCMTK_HAVE_CONFIG_H_OPTIONAL
)
...
...
@@ -348,4 +358,6 @@ if(DCMTK_FOUND AND UNIX AND NOT APPLE)
endif
()
endif
()
message
(
STATUS
"Trying to find DCMTK relying on FindDCMTK.cmake - ok"
)
if
(
NOT DCMTK_FIND_QUIETLY
)
message
(
STATUS
"Trying to find DCMTK relying on FindDCMTK.cmake - ok"
)
endif
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment