Skip to content

Commit

Permalink
try fix oracle python3
Browse files Browse the repository at this point in the history
  • Loading branch information
sgatto committed Aug 22, 2024
1 parent 3092658 commit 285d17c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ endif ()
if (NOT DEFINED ortools_REF)
message(FATAL_ERROR "ortools_REF is not defined")
endif ()
find_package (Python REQUIRED)
FetchContent_Declare(ortools
GIT_REPOSITORY ${ortools_REPO}
GIT_TAG ${ortools_REF}
Expand All @@ -20,7 +21,7 @@ FetchContent_Declare(ortools
${CMAKE_CURRENT_SOURCE_DIR}/patch_utils.py
${CMAKE_CURRENT_SOURCE_DIR}/ortools
${CMAKE_CURRENT_SOURCE_DIR}/patchs
. && python patch.py
. && ${PYTHON_EXECUTABLE} patch.py
OVERRIDE_FIND_PACKAGE ON
)
message("BUILD_DEPS: " ${BUILD_DEPS})
Expand Down
2 changes: 1 addition & 1 deletion patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# add the USE_SIRIUS configuration flag in deps.cmake
full_patch.append(Addition(
Path.cwd()/'cmake'/'deps.cmake',
Path.cwd()/'cmake'/'system_deps.cmake',
'''
if(USE_CPLEX)
find_package(CPLEX REQUIRED)
Expand Down

0 comments on commit 285d17c

Please sign in to comment.