Skip to content

Commit

Permalink
Fetch content Antares
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Sep 18, 2024
1 parent 3ff33e6 commit a75e4e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
21 changes: 7 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,19 @@ if (${BUILD_antares_solver})
message(WARNING "Antares solver not found, will be build")
set(REPOSITORY "https://github.com/AntaresSimulatorTeam/Antares_Simulator.git")
set(TAG "v${ANTARES_VERSION_TAG}")
set(FETCHCONTENT_QUIET OFF)
set(FETCHCONTENT_UPDATES_DISCONNECTED TRUE) #To avoid fetching updates everytime
#set(FETCHCONTENT_QUIET FALSE) for more log
FetchContent_Declare(
Antares
GIT_REPOSITORY ${REPOSITORY}
GIT_TAG ${TAG}
GIT_PROGRESS TRUE
USES_TERMINAL_DOWNLOAD TRUE
GIT_TAG feature/full_build_fixes
GIT_SHALLOW TRUE
SOURCE_SUBDIR src
GIT_SUBMODULES ""
#USES_TERMINAL_DOWNLOAD TRUE #For verbosity
#GIT_PROGRESS TRUE
OVERRIDE_FIND_PACKAGE
EXCLUDE_FROM_ALL
)
set(BUILD_ortools ON)
set(BUILD_UI OFF)
Expand All @@ -157,17 +160,7 @@ if (${BUILD_antares_solver})
FetchContent_MakeAvailable(Antares)
endif ()
endif ()
set(CMAKE_FIND_DEBUG_MODE ON)
find_package(Antares REQUIRED)
fetchcontent_declare(
TestAPI
GIT_REPOSITORY https://gitlab.com/JasonMarechal25/testapi.git
OVERRIDE_FIND_PACKAGE
SOURCE_SUBDIR lib
)
fetchcontent_makeavailable(TestAPI)
find_package(TestAPI REQUIRED)
set(CMAKE_FIND_DEBUG_MODE OFF)

find_package(minizip-ng REQUIRED)
# ---------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion src/cpp/lpnamer/problem_modifier/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ target_include_directories (lp_namer_problem_modifier

target_link_libraries (lp_namer_problem_modifier
PUBLIC
TestApi::TestApi
lp_namer_model
lp_namer_input_reader
lp_namer_helper
Expand Down

0 comments on commit a75e4e0

Please sign in to comment.