CMakeLists.txt.patch 617 B

12345678910111213
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 15cb7ef90..bb8bfa2dc 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -12,7 +12,7 @@ set(Ledger_TEST_TIMEZONE "America/Chicago")
  6. # Point CMake at any custom modules we may ship
  7. list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
  8. -if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
  9. +if ((${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.7.0") AND (${CMAKE_VERSION} VERSION_LESS "3.16.0"))
  10. # use backported module from 3.15 (introduced 3.12) to support older versions of cmake
  11. list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/python-backport")
  12. endif()