add platform check for how to link to the standard math library.

This allows to support QNX.
This commit is contained in:
Benoit Jacob
2010-04-19 11:19:22 -04:00
parent 40b2aaa8b1
commit 84d1b2ae3a
9 changed files with 163 additions and 40 deletions

View File

@@ -40,6 +40,9 @@ macro(ei_add_test_internal testname testname_with_suffix)
ei_add_target_property(${targetname} COMPILE_FLAGS "${ARGV2}")
endif(${ARGC} GREATER 2)
if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
target_link_libraries(${targetname} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
endif()
if(EXTERNAL_LIBS)
target_link_libraries(${targetname} ${EXTERNAL_LIBS})
endif()