Skip to content

Commit c04950a

Browse files
committed
BUG: fixing CMake configure error
CMake Error at src/CMakeLists.txt:26 (if): if given arguments: "LESS" "2.7" Unknown arguments specified
1 parent 63e175c commit c04950a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if(BUILD_DOCUMENTATION)
2323
# Set here the proper version of Python required to be able to build
2424
# tarballs for each example
2525
set(PYTHON_REQUIRED_VERSION 2.7)
26-
if(${PYTHON_VERSION_STRING} LESS ${PYTHON_REQUIRED_VERSION})
26+
if(${PYTHON_VERSION_STRING} VERSION_LESS ${PYTHON_REQUIRED_VERSION})
2727
message(SEND_ERROR "Building the documentation requires Python >= ${PYTHON_REQUIRED_VERSION}")
2828
endif()
2929
endif()

0 commit comments

Comments
 (0)