diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt index 93ae9360..3418d2de 100644 --- a/src/bindings/python/CMakeLists.txt +++ b/src/bindings/python/CMakeLists.txt @@ -30,10 +30,10 @@ FIND_PACKAGE(SWIG 2.0 REQUIRED) INCLUDE(${SWIG_USE_FILE}) ### Enable some legacy SWIG behaviors, in newer CMAKEs -if (CMAKE_VERSION VERSION_GREATER 3.13) +if (POLICY CMP0078) cmake_policy(SET CMP0078 OLD) endif() -if (CMAKE_VERSION VERSION_GREATER 3.14) +if (POLICY CMP0086) cmake_policy(SET CMP0086 OLD) endif() diff --git a/src/bindings/ruby/CMakeLists.txt b/src/bindings/ruby/CMakeLists.txt index 82c9d5d5..7e3bce99 100644 --- a/src/bindings/ruby/CMakeLists.txt +++ b/src/bindings/ruby/CMakeLists.txt @@ -30,10 +30,10 @@ FIND_PACKAGE(SWIG 2.0 REQUIRED) INCLUDE(${SWIG_USE_FILE}) ### Enable some legacy SWIG behaviors, in newer CMAKEs -if (CMAKE_VERSION VERSION_GREATER 3.13) +if (POLICY CMP0078) cmake_policy(SET CMP0078 OLD) endif() -if (CMAKE_VERSION VERSION_GREATER 3.14) +if (POLICY CMP0086) cmake_policy(SET CMP0086 OLD) endif()