Skip to content

Commit

Permalink
add policy guard
Browse files Browse the repository at this point in the history
  • Loading branch information
GarrettDMorrison committed Dec 12, 2023
1 parent b2dd836 commit 67680bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if (CMAKE_VERSION VERSION_GREATER 3.27.0)
cmake_policy(SET CMP0148 OLD)
endif ()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/scikit-build-cmake)
include(UseCython)
include(FindPythonExtensions)
Expand Down
4 changes: 4 additions & 0 deletions tests/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if (CMAKE_VERSION VERSION_GREATER 3.27.0)
cmake_policy(SET CMP0148 OLD)
endif ()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/python/scikit-build-cmake)

find_package(PythonInterp REQUIRED)
Expand Down

0 comments on commit 67680bc

Please sign in to comment.