Skip to content

Commit f63625e

Browse files
authored
Merge pull request #4671 from thewtex/cmake-advanced-mac
cmake advanced mac
2 parents e59ee99 + f1c390a commit f63625e

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

CMake/ITKModuleRemote.cmake

+1-2
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,16 @@ function(itk_fetch_module _name _description)
199199

200200
if(NOT DEFINED Module_${_name})
201201
option(Module_${_name} "(Remote-${MODULE_COMPLIANCE_LEVEL}) ${_description}" OFF)
202+
mark_as_advanced(Module_${_name})
202203
else()
203204
# If Module_${_name} is set manually, put its value in the CACHE
204205
option(Module_${_name} "(Remote-${MODULE_COMPLIANCE_LEVEL}) ${_description}" ${Module_${_name}})
205206
endif()
206207

207208
if(${MODULE_COMPLIANCE_LEVEL} GREATER_EQUAL ${ITK_MINIMUM_COMPLIANCE_LEVEL})
208209
set(Module_${_name}_VALID ON)
209-
mark_as_advanced(CLEAR Module_${_name})
210210
else()
211211
set(Module_${_name}_VALID OFF)
212-
mark_as_advanced(FORCE Module_${_name})
213212
endif()
214213
# message(INFO " MODULE_VALID Module_${_name}:${Module_${_name}_VALID}:${MODULE_COMPLIANCE_LEVEL}>=${ITK_MINIMUM_COMPLIANCE_LEVEL}")
215214

Modules/ThirdParty/GDCM/src/gdcm/CMakeLists.txt

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if("${CMAKE_VERSION}" VERSION_LESS_EQUAL "${GDCM_MAX_VALIDATED_CMAKE_VERSION}")
88
else()
99
set(GDCM_CMAKE_POLICY_VERSION "${GDCM_MAX_VALIDATED_CMAKE_VERSION}")
1010
endif()
11-
cmake_policy(VERSION ${GDCM_CMAKE_POLICY_VERSION})
11+
cmake_policy(VERSION ${GDCM_CMAKE_POLICY_VERSION})
1212

1313
# GDCM version 3.0.0 will only support C++11 and greater
1414
if(CMAKE_CXX_STANDARD EQUAL "98" )
@@ -23,7 +23,7 @@ project(GDCM
2323
## NOTE: the "DESCRIPTION" feature of project() was introduced in cmake 3.10.0
2424
set(PROJECT_DESCRIPTION "GDCM - Grassroots DICOM. GDCM is yet another DICOM library.")
2525

26-
## Set aliases for backwards compatibility. GDCM_VERSION_XXX are configured by the project() command
26+
## Set aliases for backwards compatibility. GDCM_VERSION_XXX are configured by the project() command
2727
set(GDCM_MAJOR_VERSION ${GDCM_VERSION_MAJOR})
2828
set(GDCM_MINOR_VERSION ${GDCM_VERSION_MINOR})
2929
set(GDCM_BUILD_VERSION ${GDCM_VERSION_PATCH})
@@ -564,7 +564,10 @@ if(APPLE)
564564
if(GDCM_USE_COREFOUNDATION_LIBRARY)
565565
find_library(COREFOUNDATION_LIBRARY CoreFoundation )
566566
endif()
567-
mark_as_advanced(COREFOUNDATION_LIBRARY)
567+
mark_as_advanced(
568+
GDCM_USE_COREFOUNDATION_LIBRARY
569+
COREFOUNDATION_LIBRARY
570+
)
568571
endif()
569572

570573
#-----------------------------------------------------------------------------

Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ endif()
168168
if (APPLE)
169169
list(APPEND OPENJPEG_LIBRARY_PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_LIB_DIR}")
170170
option(OPJ_USE_DSYMUTIL "Call dsymutil on binaries after build." OFF)
171+
mark_as_advanced(OPJ_USE_DSYMUTIL)
171172
endif()
172173

173174
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)