Skip to content

Commit 22d4ff4

Browse files
committed
ENH: Remove CMake code block for unsupported versions
1 parent 1a22793 commit 22d4ff4

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

CMake/itkExternal_Eigen3.cmake

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ if(NOT CMAKE_CONFIGURATION_TYPES)
2121
)
2222
endif()
2323

24-
if(CMAKE_SH AND CMAKE_VERSION VERSION_LESS "3.17.0")
25-
# Setting CMAKE_SH is required when using "MinGW Makefiles" generator with CMake < 3.17
26-
# See https://github.com/InsightSoftwareConsortium/ITK/issues/66#issuecomment-424374973
27-
list(APPEND _additional_external_project_args -DCMAKE_SH:PATH=${CMAKE_SH})
28-
endif()
29-
3024
# Because the header-only nature of Eigen3, EIGEN_MPL2_ONLY definition could be leaked outside ITK.
3125
# This would wrongly enforce EIGEN_MPL2_ONLY to other libraries using Eigen.
3226
# We wrap this definition in ITK_USE_EIGEN_MPL2_ONLY, and only enabling it internally in the dashboards and CI,

Modules/ThirdParty/DCMTK/CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,8 @@ endforeach()
285285
${ITKDCMTK_LIBDEP} )
286286
endforeach()
287287

288-
if(CMAKE_VERSION VERSION_LESS 3.4)
289-
set(CMAKE_CXX_COMPILER_LAUNCHER_FLAG )
290-
set(CMAKE_C_COMPILER_LAUNCHER_FLAG )
291-
else()
292-
set(CMAKE_CXX_COMPILER_LAUNCHER_FLAG -DCMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=${CMAKE_CXX_COMPILER_LAUNCHER})
293-
set(CMAKE_C_COMPILER_LAUNCHER_FLAG -DCMAKE_C_COMPILER_LAUNCHER:FILEPATH=${CMAKE_C_COMPILER_LAUNCHER})
294-
endif()
288+
set(CMAKE_CXX_COMPILER_LAUNCHER_FLAG -DCMAKE_CXX_COMPILER_LAUNCHER:FILEPATH=${CMAKE_CXX_COMPILER_LAUNCHER})
289+
set(CMAKE_C_COMPILER_LAUNCHER_FLAG -DCMAKE_C_COMPILER_LAUNCHER:FILEPATH=${CMAKE_C_COMPILER_LAUNCHER})
295290
set(_cross_compiling_flags)
296291
if(CMAKE_TOOLCHAIN_FILE)
297292
list(APPEND _cross_compiling_flags -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE})

0 commit comments

Comments
 (0)