# 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)
#
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