vtkCMakeBackports.cmake 512 B

12345678910111213
  1. file(GLOB cmake_version_backports
  2. LIST_DIRECTORIES true
  3. RELATIVE "${CMAKE_CURRENT_LIST_DIR}/patches"
  4. "${CMAKE_CURRENT_LIST_DIR}/patches/*")
  5. foreach (cmake_version_backport IN LISTS cmake_version_backports)
  6. if (NOT IS_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/patches/${cmake_version_backport}")
  7. continue ()
  8. endif ()
  9. if (CMAKE_VERSION VERSION_LESS "${cmake_version_backport}")
  10. list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_LIST_DIR}/patches/${cmake_version_backport}")
  11. endif ()
  12. endforeach ()