Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
malaterre committed Jan 7, 2025
2 parents 46d9790 + 016eb75 commit a8ccb5e
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 62 deletions.
13 changes: 3 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
cmake_minimum_required(VERSION 3.9.2 FATAL_ERROR) # travis-ci wants 3.9.2

set(GDCM_MAX_VALIDATED_CMAKE_VERSION "3.13.4")
if("${CMAKE_VERSION}" VERSION_LESS_EQUAL "${GDCM_MAX_VALIDATED_CMAKE_VERSION}")
# As of 2018-12-04 GDCM has been validated to build with cmake version 3.13.1 new policies.
# Set and use the newest cmake policies that are validated to work
set(GDCM_CMAKE_POLICY_VERSION "${CMAKE_VERSION}")
else()
set(GDCM_CMAKE_POLICY_VERSION "${GDCM_MAX_VALIDATED_CMAKE_VERSION}")
endif()
cmake_policy(VERSION ${GDCM_CMAKE_POLICY_VERSION})

# Set minimum required version of CMake, and policy version
cmake_minimum_required(VERSION 3.9.2...${GDCM_MAX_VALIDATED_CMAKE_VERSION} FATAL_ERROR) # travis-ci wants 3.9.2

# GDCM version 3.0.0 will only support C++11 and greater
if(CMAKE_CXX_STANDARD EQUAL "98" )
Expand Down
2 changes: 1 addition & 1 deletion Examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 2.8.7...3.13.4)

# Choose behavior based on whether we are building inside the GDCM tree.
if(GDCM_BINARY_DIR)
Expand Down
10 changes: 1 addition & 9 deletions Utilities/gdcmcharls/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 2.8.7...${GDCM_MAX_VALIDATED_CMAKE_VERSION})
endif()

if(NOT CHARLS_NAMESPACE)
Expand All @@ -11,14 +11,6 @@ string(TOLOWER ${CHARLS_NAMESPACE} CHARLS_LIBRARY_NAME)

project(${CHARLS_NAMESPACE} CXX)

foreach(p
CMP0042
CMP0063
)
if(POLICY ${p})
cmake_policy(SET ${p} NEW)
endif()
endforeach()

#-----------------------------------------------------------------------------
# CHARLS version number
Expand Down
2 changes: 1 addition & 1 deletion Utilities/gdcmexpat/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 2.8.7...${GDCM_MAX_VALIDATED_CMAKE_VERSION})
endif()

if(NOT EXPAT_NAMESPACE)
Expand Down
10 changes: 1 addition & 9 deletions Utilities/gdcmjpeg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 2.8.7...${GDCM_MAX_VALIDATED_CMAKE_VERSION})
endif()

if(NOT JPEG_NAMESPACE)
Expand All @@ -17,14 +17,6 @@ string(TOLOWER ${JPEG_NAMESPACE} JPEG_LIBRARY_NAME)

project(${JPEG_NAMESPACE} C)

foreach(p
CMP0042
CMP0063
)
if(POLICY ${p})
cmake_policy(SET ${p} NEW)
endif()
endforeach()

# Do full dependency headers.
include_regular_expression("^.*$")
Expand Down
2 changes: 1 addition & 1 deletion Utilities/gdcmmd5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 2.8.7...${GDCM_MAX_VALIDATED_CMAKE_VERSION})
endif()

if(NOT MD5_NAMESPACE)
Expand Down
18 changes: 1 addition & 17 deletions Utilities/gdcmopenjpeg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,7 @@
# e.g.:
# set(OPENJPEG_NAMESPACE "GDCMOPENJPEG")
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 2.8.2)
endif()

if(COMMAND CMAKE_POLICY)
cmake_policy(SET CMP0003 NEW)
if (NOT (${CMAKE_VERSION} VERSION_LESS 3.0))
cmake_policy(SET CMP0042 NEW)
endif()

foreach(p
CMP0042
CMP0063
)
if(POLICY ${p})
cmake_policy(SET ${p} NEW)
endif()
endforeach()
cmake_minimum_required(VERSION 2.8.2...${GDCM_MAX_VALIDATED_CMAKE_VERSION})
endif()

if(NOT OPENJPEG_NAMESPACE)
Expand Down
2 changes: 1 addition & 1 deletion Utilities/gdcmuuid/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 2.8.7...${GDCM_MAX_VALIDATED_CMAKE_VERSION})
endif()

if(NOT UUID_NAMESPACE)
Expand Down
2 changes: 1 addition & 1 deletion Utilities/gdcmzlib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 2.8.7...${GDCM_MAX_VALIDATED_CMAKE_VERSION})
endif()

if(NOT ZLIB_NAMESPACE)
Expand Down
2 changes: 1 addition & 1 deletion Utilities/getopt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 2.8.7...${GDCM_MAX_VALIDATED_CMAKE_VERSION})
endif()

if(NOT GETOPT_NAMESPACE)
Expand Down
12 changes: 1 addition & 11 deletions Utilities/socketxx/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
if(NOT DEFINED CMAKE_MINIMUM_REQUIRED_VERSION)
cmake_minimum_required(VERSION 2.8.7)
cmake_minimum_required(VERSION 2.8.7...${GDCM_MAX_VALIDATED_CMAKE_VERSION})
endif()

foreach(p
CMP0022
CMP0042
CMP0063 # CMake 3.3.2
)
if(POLICY ${p})
cmake_policy(SET ${p} NEW)
endif()
endforeach()

# http://www.linuxhacker.at/socketxx
if(NOT SOCKETXX_NAMESPACE)
set(SOCKETXX_NAMESPACE "SOCKETXX")
Expand Down

0 comments on commit a8ccb5e

Please sign in to comment.