Skip to content

Commit

Permalink
Enable building Catch2 as a dynamic library
Browse files Browse the repository at this point in the history
Signed-off-by: Alecto Irene Perez <perez.cs@pm.me>
  • Loading branch information
codeinred committed Mar 23, 2022
1 parent 0e176c3 commit 3cc3171
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/CMakeLists.txt
Expand Up @@ -251,9 +251,7 @@ set(REPORTER_SOURCES
)
set(REPORTER_FILES ${REPORTER_HEADERS} ${REPORTER_SOURCES})

# Fixme: STATIC because for dynamic, we would need to handle visibility
# and I don't want to do the annotations right now
add_library(Catch2 STATIC
add_library(Catch2
${REPORTER_FILES}
${INTERNAL_FILES}
${BENCHMARK_HEADERS}
Expand Down Expand Up @@ -306,7 +304,7 @@ target_include_directories(Catch2
)


add_library(Catch2WithMain STATIC
add_library(Catch2WithMain
${SOURCES_DIR}/internal/catch_main.cpp
)
add_build_reproducibility_settings(Catch2WithMain)
Expand Down

0 comments on commit 3cc3171

Please sign in to comment.