Skip to content

Commit

Permalink
COMP: Allow ITK to manage cmake_minimum_required version
Browse files Browse the repository at this point in the history
Do not override the minimum required version in HDF5 subtree.
  • Loading branch information
hjmjohnson committed Jan 6, 2022
1 parent 0b8a2ec commit 452b99c
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modules/ThirdParty/HDF5/src/itkhdf5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[[ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
project (HDF5 C)
# ITK --start
if(POLICY CMP0083)
Expand Down
2 changes: 2 additions & 0 deletions Modules/ThirdParty/HDF5/src/itkhdf5/c++/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
project (HDF5_CPP CXX)

add_subdirectory (src)
Expand Down
2 changes: 2 additions & 0 deletions Modules/ThirdParty/HDF5/src/itkhdf5/c++/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop]]
project (HDF5_CPP_SRC CXX)

#-----------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
#
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
########################################################
# For any comments please contact cdashhelp@hdfgroup.org
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
#
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
###############################################################################################################
# This script will build and run the examples from a folder
# Execute from a command line:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
#
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
########################################################
# This dashboard is maintained by The HDF Group
# For any comments please contact cdashhelp@hdfgroup.org
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
### ctest -S HDF5config.cmake,BUILD_GENERATOR=VS201764 -C Release -VV -O hdf5.log ###
#############################################################################################

#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
############################################################################
# Usage:
# ctest -S HDF5config.cmake,OPTION=VALUE -C Release -VV -O test.log
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]

message(STATUS "Check for existence of ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c")
execute_process(COMMAND ls ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c RESULT_VARIABLE H5TI_result OUTPUT_QUIET ERROR_QUIET)
Expand Down
2 changes: 2 additions & 0 deletions Modules/ThirdParty/HDF5/src/itkhdf5/hl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
project (HDF5_HL C)

#-----------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions Modules/ThirdParty/HDF5/src/itkhdf5/hl/c++/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
project (HDF5_HL_CPP CXX)

#-----------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions Modules/ThirdParty/HDF5/src/itkhdf5/hl/c++/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
project (HDF5_HL_CPP_SRC CXX)

#-----------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions Modules/ThirdParty/HDF5/src/itkhdf5/hl/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
project (HDF5_HL_SRC C)

#-----------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#[[ ITK --start
cmake_minimum_required (VERSION 3.12)
# ITK --stop ]]
project (HDF5_SRC C)
# ITK --start
if(POLICY CMP0083)
Expand Down

0 comments on commit 452b99c

Please sign in to comment.