Skip to content

Commit

Permalink
ENH: Mark CMake variables as advanced
Browse files Browse the repository at this point in the history
Closes #3113.
  • Loading branch information
dzenanz committed Apr 25, 2022
1 parent 1839cbe commit 049ff7f
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
17 changes: 16 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,13 @@ mark_as_advanced(FORCE
Module_BoneEnhancement
Module_BoneMorphometry
Module_BSplineGradient
Module_Cleaver
Module_Cuberille
Module_CudaCommon
Module_FixedPointInverseDisplacementField
Module_GenericLabelInterpolator
Module_GrowCut
Module_HASI
Module_HigherOrderAccurateGradient
Module_IOFDF
Module_IOMeshSTL
Expand All @@ -676,6 +680,7 @@ mark_as_advanced(FORCE
Module_LabelErodeDilate
Module_LesionSizingToolkit
Module_MeshNoise
Module_MeshToPolyData
Module_MGHIO
Module_MinimalPathExtraction
Module_Montage
Expand All @@ -689,6 +694,7 @@ mark_as_advanced(FORCE
Module_RLEImage
Module_RTK
Module_SCIFIO
Module_Shape
Module_SimpleITKFilters
Module_SkullStrip
Module_SmoothingRecursiveYvvGaussianFilter
Expand All @@ -702,7 +708,16 @@ mark_as_advanced(FORCE
Module_TubeTK
Module_TwoProjectionRegistration
Module_Ultrasound
Module_VariationalRegistration)
Module_VariationalRegistration
Module_VkFFTBackend
Module_WebAssemblyInterface
)

mark_as_advanced(FORCE
NSIS_EXECUTABLE
WIX_EXECUTABLE
)


# Create an IDE folder structure similar to our source structure
if("${CMAKE_GENERATOR}" MATCHES "Xcode|Visual Studio|KDevelop")
Expand Down
13 changes: 13 additions & 0 deletions Modules/ThirdParty/Expat/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,16 @@ set(ITK3P_INSTALL_LIBRARY_DIR "${ITKExpat_INSTALL_LIBRARY_DIR}")
set(ITK3P_INSTALL_ARCHIVE_DIR "${ITKExpat_INSTALL_ARCHIVE_DIR}")
add_subdirectory(expat)
itk_module_target(ITKEXPAT NO_INSTALL)
mark_as_advanced(FORCE
EXPAT_BUILD_DOCS
EXPAT_BUILD_EXAMPLES
EXPAT_BUILD_FUZZERS
EXPAT_BUILD_PKGCONFIG
EXPAT_BUILD_TESTS
EXPAT_BUILD_TOOLS
EXPAT_CHAR_TYPE
EXPAT_ENABLE_INSTALL
EXPAT_OSSFUZZ_BUILD
EXPAT_SHARED_LIBS
EXPAT_WARNINGS_AS_ERRORS
)
4 changes: 4 additions & 0 deletions Modules/ThirdParty/HDF5/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,14 @@ mark_as_advanced(HDF_ENABLE_LARGE_FILE)
mark_as_advanced(CTEST_TEST_TIMEOUT)
mark_as_advanced(HDF5_BUILD_GENERATORS)
mark_as_advanced(HDF5_ENABLE_DEV_WARNINGS)
mark_as_advanced(HDF5_ENABLE_MIRROR_VFD)
mark_as_advanced(HDF5_IGNORE_DISABLED_FILE_LOCKS)
mark_as_advanced(HDF5_MEMORY_ALLOC_SANITY_CHECK)
mark_as_advanced(HDF5_USE_110_API_DEFAULT)
mark_as_advanced(HDF5_USE_18_API_DEFAULT)
mark_as_advanced(HDF5_USE_FILE_LOCKING)
mark_as_advanced(HDF5_USE_PREGEN)
mark_as_advanced(USE_LIBAEC)
unset(ALLOW_UNSUPPORTED CACHE)

if(BUILD_SHARED_LIBS)
Expand Down
1 change: 1 addition & 0 deletions Modules/ThirdParty/NIFTI/src/nifti/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ include(CMakeDependentOption)

if("${CMAKE_VERSION}" VERSION_GREATER_EQUAL "3.13")
set(CMAKE_VER_AT_LEAST_3_13 1 CACHE BOOL "Is set for cmake >=3.13")
mark_as_advanced(CMAKE_VER_AT_LEAST_3_13)
endif()

# add option to build shared libraries. The default is OFF to maintain the
Expand Down
15 changes: 15 additions & 0 deletions Modules/ThirdParty/ZLIB/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,18 @@ set(ZLIB_COMPAT ON)
set(ZLIB_DUAL_LINK OFF)
set(ZLIB_ENABLE_TESTS OFF)
add_subdirectory(itkzlib-ng)
mark_as_advanced(FORCE
BIN_INSTALL_DIR
INC_INSTALL_DIR
LIB_INSTALL_DIR
PKGCONFIG_INSTALL_DIR
WITH_CODE_COVERAGE
WITH_FUZZERS
WITH_GZFILEOP
WITH_MAINTAINER_WARNINGS
WITH_NATIVE_INSTRUCTIONS
WITH_NEW_STRATEGIES
WITH_OPTIM
WITH_NATIVE_INSTRUCTIONS
WITH_SANITIZER
)

0 comments on commit 049ff7f

Please sign in to comment.