Linking with Conan targets only when they exists (resolves #98)
This commit is contained in:
1 parent
2f6ecb113a
commit
d18480879d
4 files changed
+9
-6
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user