[CMake] CMAKE_BUILD_TYPE and exact control of compiler options

René J. V. Bertin rjvbertin at gmail.com
Mon Oct 12 04:55:09 EDT 2015


René J. V. Bertin wrote:

Similarly, is there a way to set preprocessor variables (cf. 
https://cmake.org/Bug/view.php?id=12928 which has been silent for a long time)?

One could do -DINCLUDE_DIRECTORIES=${CPPFLAGS}, but that may lead to unexpected 
results if CPPFLAGS contains something other than -I options.

R.



More information about the CMake mailing list