From 5fc1f2123831351818cdcfa093c23a6a02a0de9a Mon Sep 17 00:00:00 2001
From: Matthias Maier
The cmake
variable CMAKE_BUILD_TYPE
- controls the type of build. We support Debug
,
+ controls the type of build. We support Debug
,
Release
and DebugRelease
mode. Default
is DebugRelease
.
diff --git a/doc/users/cmakelists.html b/doc/users/cmakelists.html
index 3bd4b58578..b4d8e364ed 100644
--- a/doc/users/cmakelists.html
+++ b/doc/users/cmakelists.html
@@ -198,7 +198,7 @@ executables.
CMAKE_BUILD_TYPE
. If it is set to Debug
executables and libraries specified in your CMakeLists.txt
file will be compiled in debug mode and linked against the debug version of
-the deal.II library. Contrary Release
will build in optimized
+the deal.II library. Contrary, Release
will build in optimized
mode and link against the optimized release version of deal.II. You can set
CMAKE_BUILD_TYPE
with the help of ccmake
or via
cmake
on the command line:
CMakeLists.txt
file or to run
additional argument DEBUG
, or RELEASE
, after
the target name to explicitly state the library flavor the target should
be set up for. If the parameter is omitted, the correct choice is deduced
- from the current build type (with DEBUG
taking precedence in
- case of DebugRelease
as build type).
+ from the current build type. (This is supported for the build types
+ Debug
, and Release
. In case of
+ DebugRelease
the additional argument is always required.)
@@ -506,11 +507,11 @@ DEAL_II_INITIALIZE_CACHED_VARIABLES()
PROJECT(myproject)
The macro will set an uninitialized CMAKE_BUILD_TYPE
variable
-to Debug
(or Release
if the debug library is not
-available). If CMAKE_BUILD_TYPE
is specified it will
-automatically be reset if the given value is unsupported by the deal.II
-installation (i.e., if it is not equal to Debug
,
-Release
, or DebugRelease
).
+to the the build type of deal.II, i.e. DEAL_II_BUILD_TYPE
. If
+CMAKE_BUILD_TYPE
is specified it will automatically be reset
+if the given value is unsupported by the deal.II installation (i.e., if it
+is not equal to Debug
, Release
, or
+DebugRelease
).
Furthermore, this macro sets the C++ compiler to the one used for compiling -- 2.39.5