Skip to content

Commit

Permalink
Merge pull request InsightSoftwareConsortium#4671 from thewtex/cmake-…
Browse files Browse the repository at this point in the history
…advanced-mac

cmake advanced mac
  • Loading branch information
thewtex authored May 16, 2024
2 parents e59ee99 + f1c390a commit f63625e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 1 addition & 2 deletions CMake/ITKModuleRemote.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,16 @@ function(itk_fetch_module _name _description)

if(NOT DEFINED Module_${_name})
option(Module_${_name} "(Remote-${MODULE_COMPLIANCE_LEVEL}) ${_description}" OFF)
mark_as_advanced(Module_${_name})
else()
# If Module_${_name} is set manually, put its value in the CACHE
option(Module_${_name} "(Remote-${MODULE_COMPLIANCE_LEVEL}) ${_description}" ${Module_${_name}})
endif()

if(${MODULE_COMPLIANCE_LEVEL} GREATER_EQUAL ${ITK_MINIMUM_COMPLIANCE_LEVEL})
set(Module_${_name}_VALID ON)
mark_as_advanced(CLEAR Module_${_name})
else()
set(Module_${_name}_VALID OFF)
mark_as_advanced(FORCE Module_${_name})
endif()
# message(INFO " MODULE_VALID Module_${_name}:${Module_${_name}_VALID}:${MODULE_COMPLIANCE_LEVEL}>=${ITK_MINIMUM_COMPLIANCE_LEVEL}")

Expand Down
9 changes: 6 additions & 3 deletions Modules/ThirdParty/GDCM/src/gdcm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if("${CMAKE_VERSION}" VERSION_LESS_EQUAL "${GDCM_MAX_VALIDATED_CMAKE_VERSION}")
else()
set(GDCM_CMAKE_POLICY_VERSION "${GDCM_MAX_VALIDATED_CMAKE_VERSION}")
endif()
cmake_policy(VERSION ${GDCM_CMAKE_POLICY_VERSION})
cmake_policy(VERSION ${GDCM_CMAKE_POLICY_VERSION})

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

## Set aliases for backwards compatibility. GDCM_VERSION_XXX are configured by the project() command
## Set aliases for backwards compatibility. GDCM_VERSION_XXX are configured by the project() command
set(GDCM_MAJOR_VERSION ${GDCM_VERSION_MAJOR})
set(GDCM_MINOR_VERSION ${GDCM_VERSION_MINOR})
set(GDCM_BUILD_VERSION ${GDCM_VERSION_PATCH})
Expand Down Expand Up @@ -564,7 +564,10 @@ if(APPLE)
if(GDCM_USE_COREFOUNDATION_LIBRARY)
find_library(COREFOUNDATION_LIBRARY CoreFoundation )
endif()
mark_as_advanced(COREFOUNDATION_LIBRARY)
mark_as_advanced(
GDCM_USE_COREFOUNDATION_LIBRARY
COREFOUNDATION_LIBRARY
)
endif()

#-----------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ endif()
if (APPLE)
list(APPEND OPENJPEG_LIBRARY_PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_LIB_DIR}")
option(OPJ_USE_DSYMUTIL "Call dsymutil on binaries after build." OFF)
mark_as_advanced(OPJ_USE_DSYMUTIL)
endif()

#-----------------------------------------------------------------------------
Expand Down

0 comments on commit f63625e

Please sign in to comment.