Fix bug #93: 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:30:46 -04:00
parent 4785e27d6a
commit 8d4b0aae04
4 changed files with 42 additions and 0 deletions

View File

@@ -161,6 +161,10 @@ macro(ei_add_test testname)
target_link_libraries(${targetname} Eigen2)
endif(TEST_LIB)
if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
target_link_libraries(${targetname} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
endif()
target_link_libraries(${targetname} ${EXTERNAL_LIBS})
if(${ARGC} GREATER 2)
string(STRIP "${ARGV2}" ARGV2_stripped)