We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49d5794 commit 807fc79Copy full SHA for 807fc79
CMakeLists.txt
@@ -568,6 +568,9 @@ if(BUILD_TESTING)
568
ament_add_gtest(test_macros
569
test/test_macros.cpp
570
)
571
+ if(TARGET test_macros)
572
+ target_link_libraries(test_macros ${PROJECT_NAME})
573
+ endif()
574
575
add_performance_test(benchmark_logging test/benchmark/benchmark_logging.cpp)
576
if(TARGET benchmark_logging)
@@ -578,10 +581,6 @@ if(BUILD_TESTING)
578
581
if(TARGET benchmark_err_handle)
579
582
target_link_libraries(benchmark_err_handle ${PROJECT_NAME})
580
583
endif()
-
- if(TARGET test_macros)
- target_link_libraries(test_macros ${PROJECT_NAME})
584
- endif()
585
586
587
# Export old-style CMake variables
0 commit comments