Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sgatto committed Aug 22, 2024
1 parent 67c7054 commit 3ee3703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif ()
if (NOT DEFINED ortools_REF)
message(FATAL_ERROR "ortools_REF is not defined")
endif ()
find_package (Python REQUIRED)
find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module
message("found PYTHON interpreter ${Python_EXECUTABLE} = " ${Python_EXECUTABLE})
FetchContent_Declare(ortools
GIT_REPOSITORY ${ortools_REPO}
Expand All @@ -22,7 +22,7 @@ FetchContent_Declare(ortools
${CMAKE_CURRENT_SOURCE_DIR}/patch_utils.py
${CMAKE_CURRENT_SOURCE_DIR}/ortools
${CMAKE_CURRENT_SOURCE_DIR}/cmake_patches
. && ${Python_EXECUTABLE} patch.py
. && ${Python3_EXECUTABLE} patch.py
OVERRIDE_FIND_PACKAGE ON
)
message("BUILD_DEPS: " ${BUILD_DEPS})
Expand Down

0 comments on commit 3ee3703

Please sign in to comment.