]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix. Link report_features correctly
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 31 Mar 2013 23:14:44 +0000 (23:14 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 31 Mar 2013 23:14:44 +0000 (23:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@29129 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/scripts/CMakeLists.txt

index abe3af8740d9f5705942c1e9f1bcff3f6bf7a487..80272980de53d522672a5a29f5f35016ee45923d 100644 (file)
@@ -45,10 +45,17 @@ IF(DEAL_II_COMPONENT_COMPAT_FILES)
     ${CMAKE_CURRENT_SOURCE_DIR}/report_features.cc.in
     ${CMAKE_CURRENT_BINARY_DIR}/report_features.cc
     )
+
   ADD_EXECUTABLE(report_features
     ${CMAKE_CURRENT_BINARY_DIR}/report_features.cc
     )
   TARGET_LINK_LIBRARIES(report_features ${DEAL_II_EXTERNAL_LIBRARIES})
+  SET_TARGET_PROPERTIES(report_features
+    PROPERTIES
+    LINK_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}"
+    COMPILE_DEFINITIONS "${DEAL_II_DEFINITIONS}"
+    )
+
   IF(NOT CMAKE_CROSSCOMPILING)
     ADD_CUSTOM_TARGET(run_report_features COMMAND report_features)
   ENDIF()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.