diff --git a/cMake/FindPyCXX.cmake b/cMake/FindPyCXX.cmake index c15c9ec367..e37b08eee8 100644 --- a/cMake/FindPyCXX.cmake +++ b/cMake/FindPyCXX.cmake @@ -117,11 +117,11 @@ if(PYCXX_FOUND) ${PYCXX_SOURCE_DIR}/cxxsupport.cxx ${PYCXX_SOURCE_DIR}/IndirectPythonInterface.cxx ) - if(NOT ${PYCXX_VERSION} VERSION_LESS 6.3.0) - list(APPEND PYCXX_SOURCES - ${PYCXX_SOURCE_DIR}/cxx_exceptions.cxx) - add_definitions(-DPYCXX_6_2_COMPATIBILITY) - endif() + + #set old 6.2 pycxx compatibility + list(APPEND PYCXX_SOURCES ${PYCXX_SOURCE_DIR}/cxx_exceptions.cxx) + add_definitions(-DPYCXX_6_2_COMPATIBILITY) + #end old compatibility else(PYCXX_FOUND) MESSAGE(STATUS "PyCXX not found") endif(PYCXX_FOUND)