]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Bugfix, set lib-deal2 and libdeal2.g variables in Make.global_options correctly
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Mar 2013 23:33:09 +0000 (23:33 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 11 Mar 2013 23:33:09 +0000 (23:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@28860 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/config/CMakeLists.txt
deal.II/cmake/config/Make.global_options.in

index b427bd153ba1128be662020ee48eff7a5f2a1e42..4b771f2a126a3e7d5cd37b346732eeb8e1ff700c 100644 (file)
@@ -139,10 +139,6 @@ IF(DEAL_II_COMPONENT_COMPAT_FILES)
   #
   # Transform some cmake lists into a string that the old Makefile
   # mechanism actually understands:
-  #
-  # TODO: Come up with an idea how to get the link line directly from
-  # CMake...
-  #
 
   TO_STRING_AND_ADD_PREFIX(MAKEFILE_INCLUDE_DIRS "${CMAKE_INCLUDE_FLAG_CXX}"
     ${DEAL_II_USER_INCLUDE_DIRS}
@@ -156,6 +152,16 @@ IF(DEAL_II_COMPONENT_COMPAT_FILES)
       ${DEAL_II_USER_DEFINITIONS_${build}}
       )
 
+    TO_STRING(MAKEFILE_TARGETS_${build}
+        ${MAKEFILE_LIBRARY_${build}}
+        ${DEAL_II_EXTERNAL_LIBRARIES}
+        ${DEAL_II_EXTERNAL_LIBRARIES_${build}}
+        )
+
+    #
+    # TODO: Come up with an idea how to get the link line directly from
+    # CMake...
+    #
     FOREACH(_lib
         ${MAKEFILE_LIBRARY_${build}}
         ${DEAL_II_EXTERNAL_LIBRARIES}
@@ -212,3 +218,4 @@ IF(DEAL_II_COMPONENT_COMPAT_FILES)
     COMPONENT compat_files
     )
 ENDIF()
+
index 3445c489e1355449175171085427d6c419b28b4f..0b51d139b27b8192c6d4e2ecddc192c56dd56f31 100644 (file)
@@ -60,8 +60,8 @@ EXEEXT     =
 
 
 # set paths to all the libraries we need:
-lib-deal2.o     = ${DEAL_II_LIBRARIES_RELEASE}
-lib-deal2.g     = ${DEAL_II_LIBRARIES_DEBUG}
+lib-deal2.o     = ${MAKEFILE_TARGETS_RELEASE}
+lib-deal2.g     = ${MAKEFILE_TARGETS_DEBUG}
 
 
 # include paths as command line flags. while compilers allow a space between

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.