Skip to content

Commit

Permalink
[ci] Fix forcing the build type of Catch to static since it changed i…
Browse files Browse the repository at this point in the history
…n v3
  • Loading branch information
jcelerier committed Sep 24, 2023
1 parent 5d6e00a commit 4381e3e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,19 @@ if(OSSIA_TESTING)
target_link_libraries(Catch2WithMain INTERFACE Catch2::Catch2)
endif()
else()
set(CATCH_INSTALL_DOCS 0)
set(CATCH_INSTALL_DOCS 0 CACHE INTERNAL "" FORCE)
set(CATCH_INSTALL_EXTRAS 0)
set(CATCH_INSTALL_EXTRAS 0 CACHE INTERNAL "" FORCE)
set(CATCH_BUILD_TESTING 0)
set(CATCH_BUILD_TESTING 0 CACHE INTERNAL "" FORCE)
set(CATCH_BUILD_STATIC_LIBRARY 1)
set(CATCH_BUILD_STATIC_LIBRARY 1 CACHE INTERNAL "" FORCE)

set(old_BUILD_SHARED_LIBS "${BUILD_SHARED_LIBS}")
set(BUILD_SHARED_LIBS 0)
add_subdirectory(3rdparty/Catch2)
set(BUILD_SHARED_LIBS "${old_BUILD_SHARED_LIBS}")
endif()
add_subdirectory(tests)
endif()
Expand Down

0 comments on commit 4381e3e

Please sign in to comment.