From 0b8879e9fdacfc7783c231c8edfeceec68102a2e Mon Sep 17 00:00:00 2001 From: maier Date: Tue, 2 Oct 2012 22:54:57 +0000 Subject: [PATCH] Add a small convenience macro for changing the compiler git-svn-id: https://svn.dealii.org/branches/branch_cmake@26928 0785d39b-7218-0410-832d-ea1e28bc413d --- .../macros/macro_deal_ii_setup_compiler.cmake | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 deal.II/cmake/macros/macro_deal_ii_setup_compiler.cmake diff --git a/deal.II/cmake/macros/macro_deal_ii_setup_compiler.cmake b/deal.II/cmake/macros/macro_deal_ii_setup_compiler.cmake new file mode 100644 index 0000000000..0612a4d231 --- /dev/null +++ b/deal.II/cmake/macros/macro_deal_ii_setup_compiler.cmake @@ -0,0 +1,36 @@ +##### +## +## Copyright (C) 2012 by the deal.II authors +## +## This file is part of the deal.II library. +## +## +## This file is dual licensed under QPL 1.0 and LGPL 2.1 or any later +## version of the LGPL license. +## +## Author: Matthias Maier +## +##### + +# +# This file implements the DEAL_II_SETUP_COMPILER macro, which is +# part of the deal.II library. +# +# Usage: +# DEAL_II_SETUP_COMPILER() +# + +MACRO(DEAL_II_SETUP_TARGET target) + + IF(NOT DEAL_II_PROJECT_CONFIG_INCLUDE) + MESSAGE(FATAL_ERROR + "DEAL_II_SETUP_TARGET can only be called in external projects after " + "the inclusion of deal.IIConfig.cmake. It is not intended for " + "internal use." + ) + ENDIF() + + SET(CMAKE_CXX_COMPILER ${DEAL_II_CXX_COMPILER}) + +ENDMACRO() + -- 2.39.5