Linking with Conan targets only when they exists (resolves #98)

This commit is contained in:
Mateusz Pusz committed 2020-05-08 11:56:07 +02:00
1 parent 2f6ecb113a
commit d18480879d
4 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ add_executable(unit_tests_runtime
target_link_libraries(unit_tests_runtime
PRIVATE
mp::units
CONAN_PKG::Catch2
$<IF:$<TARGET_EXISTS:CONAN_PKG::Catch2>, CONAN_PKG::Catch2, Catch2::Catch2>
)
include(lib/cmake/Catch2/Catch)