]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a small convenience macro for changing the compiler
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 2 Oct 2012 22:54:57 +0000 (22:54 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 2 Oct 2012 22:54:57 +0000 (22:54 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@26928 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_deal_ii_setup_compiler.cmake [new file with mode: 0644]

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 (file)
index 0000000..0612a4d
--- /dev/null
@@ -0,0 +1,36 @@
+#####
+##
+## Copyright (C) 2012 by the deal.II authors
+##
+## This file is part of the deal.II library.
+##
+## <TODO: Full License information>
+## This file is dual licensed under QPL 1.0 and LGPL 2.1 or any later
+## version of the LGPL license.
+##
+## Author: Matthias Maier <matthias.maier@iwr.uni-heidelberg.de>
+##
+#####
+
+#
+# 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()
+

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.