From 075830ddb0184ff369e95ba0f0f865bb0aaad1c4 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 7 Oct 2009 14:22:44 +0200 Subject: [PATCH] - remove the debug_test_* targets from "all" (otherwise they are compiled when you simply run make in test/ or when enforcing "test" to be part of "all") - add linking libraries to the debug_test_* targets --- cmake/EigenTesting.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index d043f67b8..8f50b3300 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -45,7 +45,7 @@ macro(ei_add_test testname) set(filename ${testname}.cpp) add_executable(${targetname} ${filename}) add_dependencies(btest ${targetname}) - add_executable(${debug_targetname} ${filename}) + add_executable(${debug_targetname} EXCLUDE_FROM_ALL ${filename}) if(NOT EIGEN_NO_ASSERTION_CHECKING) @@ -92,6 +92,7 @@ macro(ei_add_test testname) string(LENGTH "${ARGV2_stripped}" ARGV2_stripped_length) if(${ARGV2_stripped_length} GREATER 0) target_link_libraries(${targetname} ${ARGV2}) + target_link_libraries(${debug_targetname} ${ARGV2}) endif(${ARGV2_stripped_length} GREATER 0) endif(${ARGC} GREATER 2)