diff --git a/CMake/OTBModuleHeaderTest.cmake b/CMake/OTBModuleHeaderTest.cmake index 20b43b76d4a276af341b20b5160c03ae71313a3f..b902ff7cb51841cc2e669e98a16e505e5ba9e9e7 100644 --- a/CMake/OTBModuleHeaderTest.cmake +++ b/CMake/OTBModuleHeaderTest.cmake @@ -66,7 +66,7 @@ macro( otb_module_headertest _name ) if( NOT ${_name}_THIRD_PARTY AND EXISTS ${${_name}_SOURCE_DIR}/include AND PYTHON_EXECUTABLE - AND NOT (PYTHON_VERSION_STRING VERSION_LESS 2.6) + AND NOT (PYTHON_VERSION_STRING VERSION_LESS 3) AND NOT (${_name} STREQUAL OTBTestKernel) AND NOT (CMAKE_GENERATOR MATCHES "^Visual Studio 10.*"))