From 7c3594b819df62ba0e29f123ff9165720824b1b5 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Thu, 28 Apr 2016 18:35:18 -0700 Subject: [PATCH] use CTest BUILD_TESTING --- ament_index_cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ament_index_cpp/CMakeLists.txt b/ament_index_cpp/CMakeLists.txt index 235b007..96195b3 100644 --- a/ament_index_cpp/CMakeLists.txt +++ b/ament_index_cpp/CMakeLists.txt @@ -18,7 +18,7 @@ target_include_directories(${PROJECT_NAME} PUBLIC include) ament_export_include_directories(include) ament_export_libraries(${PROJECT_NAME}) -if(AMENT_ENABLE_TESTING) +if(BUILD_TESTING) find_package(ament_lint_auto REQUIRED) # prevent cppcheck from being found, since it fails to process the file utest.cpp set(ament_cmake_cppcheck_FOUND TRUE)