Skip to content

Commit

Permalink
Set options ortools outside FetchContent
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo-Mier committed May 2, 2024
1 parent 912de2b commit 6141a6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ if(NOT ortools_vendor_FOUND)
set(ORTOOLS_FETCH_SRC ON)
message("Or-tools not found -- Downloading and building from source")

set(BUILD_DEPS ON)
set(BUILD_SAMPLES OFF)
set(BUILD_EXAMPLES OFF)

FetchContent_Declare(ortools FETCHCONTENT_UPDATES_DISCONNECTED
GIT_REPOSITORY https://github.com/google/or-tools.git
GIT_TAG v9.9
Expand Down

0 comments on commit 6141a6a

Please sign in to comment.