You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
404 B

  1. --- a/python/CMakeLists.txt
  2. +++ b/python/CMakeLists.txt
  3. @@ -3,7 +3,7 @@ option ( LINK_PYTHON_LIBRARY "Link again
  4. if ( PYTHON_BINDINGS )
  5. # workaround for cmake bug #0013449
  6. - if ( NOT DEFINED CMAKE_FIND_ROOT_PATH )
  7. + if ( NOT DEFINED CMAKE_FIND_ROOT_PATH OR CMAKE_VERSION VERSION_GREATER_EQUAL 3.0.0 )
  8. find_package ( SWIG )
  9. else ()
  10. find_program ( SWIG_EXECUTABLE NAMES swig2.0 swig )