diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-04-19 11:19:22 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-04-19 11:19:22 -0400 |
commit | 84d1b2ae3a7187f418b1cbbec03eabda372ea699 (patch) | |
tree | 2a62b619ec3e5299edfcf3b7e4a184670ff3e29a /unsupported/doc/snippets | |
parent | 40b2aaa8b149403a8f345f1f7721ddd6088db669 (diff) |
add platform check for how to link to the standard math library.
This allows to support QNX.
Diffstat (limited to 'unsupported/doc/snippets')
-rw-r--r-- | unsupported/doc/snippets/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unsupported/doc/snippets/CMakeLists.txt b/unsupported/doc/snippets/CMakeLists.txt index 19e9b1a1f..4a4157933 100644 --- a/unsupported/doc/snippets/CMakeLists.txt +++ b/unsupported/doc/snippets/CMakeLists.txt @@ -11,6 +11,9 @@ FOREACH(snippet_src ${snippets_SRCS}) ${CMAKE_CURRENT_BINARY_DIR}/${compile_snippet_src}) ADD_EXECUTABLE(${compile_snippet_target} ${CMAKE_CURRENT_BINARY_DIR}/${compile_snippet_src}) + if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO) + target_link_libraries(${compile_snippet_target} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO}) + endif() GET_TARGET_PROPERTY(compile_snippet_executable ${compile_snippet_target} LOCATION) ADD_CUSTOM_COMMAND( |