Skip to content

Commit

Permalink
Only link to existing targets
Browse files Browse the repository at this point in the history
Contributes to NP-5
  • Loading branch information
jellespijker committed Jan 30, 2024
1 parent 6ffa5dc commit 4f1e9fc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ target_link_libraries(_CuraEngine
stb::stb
boost::boost
scripta::scripta
$<$<BOOL:${ENABLE_PLUGINS}>:semver::semver>
$<$<BOOL:${ENABLE_PLUGINS}>:curaengine_grpc_definitions::curaengine_grpc_definitions>
$<$<BOOL:${ENABLE_PLUGINS}>:asio-grpc::asio-grpc>
$<$<BOOL:${ENABLE_PLUGINS}>:grpc::grpc>
$<$<TARGET_EXISTS:semver::semver>:semver::semver>
$<$<TARGET_EXISTS:curaengine_grpc_definitions::curaengine_grpc_definitions>:curaengine_grpc_definitions::curaengine_grpc_definitions>
$<$<TARGET_EXISTS:asio-grpc::asio-grpc>:asio-grpc::asio-grpc>
$<$<TARGET_EXISTS:grpc::grpc>:grpc::grpc>
$<$<TARGET_EXISTS:protobuf::libprotobuf>:protobuf::libprotobuf>
$<$<BOOL:${ENABLE_SENTRY}>:sentry::sentry>
$<$<BOOL:${ENABLE_TESTING}>:GTest::gtest>)
$<$<TARGET_EXISTS:sentry::sentry>:sentry::sentry>
$<$<TARGET_EXISTS:GTest::gtest>:GTest::gtest>)

target_compile_definitions(_CuraEngine PRIVATE
$<$<BOOL:${ENABLE_SENTRY}>:SENTRY_URL=\"${SENTRY_URL}\">
Expand Down Expand Up @@ -264,7 +264,7 @@ endif ()

target_link_libraries(CuraEngine PRIVATE
_CuraEngine
$<$<BOOL:${ENABLE_SENTRY}>:sentry::sentry>
$<$<TARGET_EXISTS:sentry::sentry>:sentry::sentry>
)
target_compile_definitions(CuraEngine PRIVATE
$<$<BOOL:${ENABLE_SENTRY}>:SENTRY_URL=\"${SENTRY_URL}\">
Expand All @@ -291,9 +291,9 @@ if (ENABLE_TESTING OR ENABLE_BENCHMARKS)
GTest::gtest
GTest::gmock
clipper::clipper
$<$<BOOL:${ENABLE_PLUGINS}>:curaengine_grpc_definitions::curaengine_grpc_definitions>
$<$<BOOL:${ENABLE_PLUGINS}>:asio-grpc::asio-grpc>
$<$<BOOL:${ENABLE_PLUGINS}>:grpc::grpc>
$<$<TARGET_EXISTS:curaengine_grpc_definitions::curaengine_grpc_definitions>:curaengine_grpc_definitions::curaengine_grpc_definitions>
$<$<TARGET_EXISTS:asio-grpc::asio-grpc>:asio-grpc::asio-grpc>
$<$<TARGET_EXISTS:grpc::grpc>:grpc::grpc>
$<$<TARGET_EXISTS:protobuf::libprotobuf>:protobuf::libprotobuf>)
if (ENABLE_ARCUS)
target_link_libraries(test_helpers PUBLIC arcus::arcus)
Expand Down

0 comments on commit 4f1e9fc

Please sign in to comment.