diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-12-09 10:50:13 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-12-09 10:50:13 +0100 |
commit | 081abb701d0629d0e8c90af0866e9590626ad48f (patch) | |
tree | adedd9ca640e83322b4ce5222e5d1dac088a5bb1 /cmake | |
parent | 10447a7b57960b3315c419b7081c1cc273df3518 (diff) |
add user defined CXX and LINKER flag cmake variables for the unit tests
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/EigenTesting.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index b2cc194f7..266043974 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -40,6 +40,10 @@ macro(ei_add_test_internal testname testname_with_suffix) if(${ARGC} GREATER 2) ei_add_target_property(${targetname} COMPILE_FLAGS "${ARGV2}") endif(${ARGC} GREATER 2) + + if(EIGEN_TEST_CUSTOM_CXX_FLAGS) + ei_add_target_property(${targetname} COMPILE_FLAGS "${EIGEN_TEST_CUSTOM_CXX_FLAGS}") + endif() if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO) target_link_libraries(${targetname} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO}) @@ -47,6 +51,9 @@ macro(ei_add_test_internal testname testname_with_suffix) if(EXTERNAL_LIBS) target_link_libraries(${targetname} ${EXTERNAL_LIBS}) endif() + if(EIGEN_TEST_CUSTOM_LINKER_FLAGS) + target_link_libraries(${targetname} ${EIGEN_TEST_CUSTOM_LINKER_FLAGS}) + endif() if(${ARGC} GREATER 3) set(libs_to_link ${ARGV3}) |