aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-10-07 14:22:44 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-10-07 14:22:44 +0200
commit075830ddb0184ff369e95ba0f0f865bb0aaad1c4 (patch)
tree8011a3db26f6682fa61757693e984fc94f4ee6b8 /cmake
parent4cf73660273fa8c1ea9db4e41bc576f93fd0ccc9 (diff)
- 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
Diffstat (limited to 'cmake')
-rw-r--r--cmake/EigenTesting.cmake3
1 files changed, 2 insertions, 1 deletions
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)