mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
cmake: Only add catch2 library if ENABLE_TESTS is enabled
This commit is contained in:
parent
17f4c52e56
commit
d721cbe29b
1 changed files with 10 additions and 8 deletions
2
externals/CMakeLists.txt
vendored
2
externals/CMakeLists.txt
vendored
|
|
@ -50,6 +50,7 @@ else()
|
|||
endif()
|
||||
|
||||
# Catch2
|
||||
if (ENABLE_TESTS)
|
||||
add_library(catch2 INTERFACE)
|
||||
if(USE_SYSTEM_CATCH2)
|
||||
find_package(Catch2 3.0.0 REQUIRED)
|
||||
|
|
@ -59,6 +60,7 @@ else()
|
|||
add_subdirectory(catch2)
|
||||
endif()
|
||||
target_link_libraries(catch2 INTERFACE Catch2::Catch2WithMain)
|
||||
endif()
|
||||
|
||||
# Crypto++
|
||||
if(USE_SYSTEM_CRYPTOPP)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue