Skip to content

Commit

Permalink
GitHub actions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pbosetti committed Jun 21, 2024
1 parent c8258e6 commit 53bb7dd
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ FetchContent_Declare(pugg
GIT_TAG 1.0.2
GIT_SHALLOW TRUE
)

# plugins deal with I/O as JSON objects
set(BUILD_TESTING OFF CACHE INTERNAL "")
set(JSON_BuildTests OFF CACHE INTERNAL "")
Expand All @@ -38,13 +39,6 @@ FetchContent_Declare(json
GIT_TAG v3.11.3
GIT_SHALLOW TRUE
)
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "")
FetchContent_Declare(restclient-cpp
GIT_REPOSITORY https://github.com/pbosetti/restclient-cpp
GIT_TAG HEAD
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(pugg json restclient-cpp)

FetchContent_Declare(eigen
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
Expand All @@ -66,6 +60,16 @@ FetchContent_Declare(stats

FetchContent_MakeAvailable(pugg json eigen gcem stats)

if(NOT MADS_NO_DEPS_ONLY)
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "")
FetchContent_Declare(restclient-cpp
GIT_REPOSITORY https://github.com/pbosetti/restclient-cpp
GIT_TAG HEAD
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(restclient-cpp)
endif()


# MACROS #######################################################################
# Call: add_plugin(name [SRCS src1 src2 ...] [LIBS lib1 lib2 ...])
Expand Down

0 comments on commit 53bb7dd

Please sign in to comment.