From 185511221f631f3e93c36b3ff18ee64e746705da Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 14 Apr 2014 14:33:02 +0200 Subject: [PATCH] Talk about CFLAGS and CXXFLAGS in doc. --- doc/doxygen/install.doc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/doxygen/install.doc b/doc/doxygen/install.doc index 63aebcf2ac..b557898581 100644 --- a/doc/doxygen/install.doc +++ b/doc/doxygen/install.doc @@ -130,7 +130,7 @@ Note that compile-time options are very different from @ref options The default configuration should be ok for most usages, but if you need to change something, there is several ways to do so. First, you -can use environment variable. For example, you can change the used +can use environment variables. For example, you can change the used compilers by issuing these commands before launching cmake: @verbatim @@ -138,6 +138,9 @@ export CC=gcc-4.4 export CXX=g++-4.4 @endverbatim +Note that other variables are available, such as CFLAGS and CXXFLAGS to add +options for respectively the C compiler and the C++ compiler. + Another way to do so is to use the -D argument of cmake as follows. Note that the terminating dot is mandatory (see @ref install_cmake_outsrc to understand its meaning). -- 2.20.1