]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: A small workaround
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Jul 2013 19:35:24 +0000 (19:35 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Jul 2013 19:35:24 +0000 (19:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@30103 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/CMakeLists.txt
deal.II/cmake/configure/configure_1_mpi.cmake

index 70f155cec6103663d5cf6945292f89079201c99c..10ee330876ca91ecd7870e7f9d6caf588e806954 100644 (file)
@@ -69,7 +69,17 @@ INCLUDE(setup_cached_variables)
 # Now, set the project and set up the rest:
 #
 PROJECT(deal.II CXX)
-ENABLE_LANGUAGE(C) # OPTIONAL) wrt to bug http://public.kitware.com/Bug/view.php?id=9220
+ENABLE_LANGUAGE(C)
+
+#
+# TODO: A quick test. Refactor.
+# It would be highly appreciated to use ENABLE_LANGUAGE(... OPTIONAL) here
+# - but this is broken beyond believe up until cmake-2.11.* *sigh*
+#
+IF(ENABLE_FORTRAN)
+  ENABLE_LANGUAGE(Fortran)
+ENDIF()
+
 INCLUDE(setup_deal_ii)
 INCLUDE(setup_compiler_flags)
 
index a441c4ab01a98d77400eb14a73b6f5da73647cc0..2b15c452c36f12a49f1ee1f027cd074148fb3626 100644 (file)
 #
 
 MACRO(FEATURE_MPI_FIND_EXTERNAL var)
-  #
-  # Enable C and Fortran support so that MPI_Fortran_LIBRARIES is set up.
-  #
-  # Disabled wrt to http://public.kitware.com/Bug/view.php?id=9220
-  #IF(NOT CMAKE_Fortran_COMPILER_WORKS)
-  #  ENABLE_LANGUAGE(Fortran OPTIONAL)
-  #ENDIF()
-
   #
   # Obey a manual user override: If MPI_CXX_FOUND is set to true in the
   # cache, we skip the FIND_PACKAGE calls:

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.