From c6c58f0e2ed743e897f17efffaa4965ff7e1d54c Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 27 Oct 2015 12:54:30 +0100 Subject: [PATCH] Put the C compiler into the config file and automatic deal.II setup --- cmake/config/Config.cmake.in | 1 + cmake/macros/macro_deal_ii_initialize_cached_variables.cmake | 3 +++ 2 files changed, 4 insertions(+) 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." ) -- 2.39.5