]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Put the C compiler into the config file and automatic deal.II setup 1799/head
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 27 Oct 2015 11:54:30 +0000 (12:54 +0100)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 27 Oct 2015 11:54:30 +0000 (12:54 +0100)
cmake/config/Config.cmake.in
cmake/macros/macro_deal_ii_initialize_cached_variables.cmake

index cb3fc69f054a85ed520e4fee2d5b90dde99b38c5..095349b03f1def95dbddcb6e0a2443f19453f8cc 100644 (file)
@@ -110,6 +110,7 @@ ENDFOREACH()
 #
 
 SET(DEAL_II_CXX_COMPILER "@CMAKE_CXX_COMPILER@")
+SET(DEAL_II_C_COMPILER "@CMAKE_C_COMPILER@")
 
 # used for all targets:
 SET(DEAL_II_CXX_FLAGS "@DEAL_II_CXX_FLAGS@")
index 23caad932d9006276266a565456b0d7f65829019..6f406c6356b2d91b95997b996acda3e379a0aebc 100644 (file)
@@ -74,6 +74,9 @@ MACRO(DEAL_II_INITIALIZE_CACHED_VARIABLES)
   SET(CMAKE_CXX_COMPILER ${DEAL_II_CXX_COMPILER} CACHE STRING
     "CXX Compiler.")
 
+  SET(CMAKE_C_COMPILER ${DEAL_II_C_COMPILER} CACHE STRING
+    "C Compiler.")
+
   SET(CMAKE_CXX_FLAGS "" CACHE STRING
     "Flags used by the compiler during all build types."
     )

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.