From: Guido Kanschat Date: Tue, 27 Oct 2015 11:54:30 +0000 (+0100) Subject: Put the C compiler into the config file and automatic deal.II setup X-Git-Tag: v8.4.0-rc2~272^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6c58f0e2ed743e897f17efffaa4965ff7e1d54c;p=dealii.git Put the C compiler into the config file and automatic deal.II setup --- diff --git a/cmake/config/Config.cmake.in b/cmake/config/Config.cmake.in index cb3fc69f05..095349b03f 100644 --- a/cmake/config/Config.cmake.in +++ b/cmake/config/Config.cmake.in @@ -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@") diff --git a/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake b/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake index 23caad932d..6f406c6356 100644 --- a/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake +++ b/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake @@ -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." )