mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
- 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
This commit is contained in:
parent
4cf7366027
commit
075830ddb0
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user