Skip to content

Commit adb74bd

Browse files
author
fbudin69500
committed
ENH: Pre283CMakeParseArguments.cmake should only be included for versions of CMake before 2.8.3
Previously, it was only comparing the patch number of CMake to know whether Pre283CMakeParseArguments.cmake should be included or not. It now compares the entire version number of CMake to verify if the current version is less recent than 2.8.3 .
1 parent e008513 commit adb74bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMake/SEMMacroBuildCLI.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Depends on:
33
# CMakeParseArguments.cmake from Cmake 2.8.4 or greater
44
#
5-
if(CMAKE_PATCH_VERSION LESS 3)
5+
if(CMAKE_VERSION VERSION_LESS 2.8.3)
66
include(${SlicerExecutionModel_CMAKE_DIR}/Pre283CMakeParseArguments.cmake)
77
else()
88
include(CMakeParseArguments)

0 commit comments

Comments
 (0)