Generate content of flags.make manually

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Generate content of flags.make manually

Matthias Möller-2
Dear all,

for a JIT compiler framework I would like to store the compiler settings created by CMake and used to compile the main code in an XML file.
Under Linux/Mac I find all information I would need in the flags.make file that is generated if I choose "Unix Makefile” as target.


# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.7

# compile CXX with /usr/local/homebrew/bin/g++-6
CXX_FLAGS =  -Wall -Wno-long-long -Wattributes -ftrack-macro-expansion=0 -fopenmp -O2 -g    -std=c++11

CXX_DEFINES = -DMOTOR_DATA_DIR=\"/Users/mmoller/codes/gismo.svn/motor/filedata/\"

CXX_INCLUDES = -I/Users/mmoller/codes/gismo.svn/devel/src -I/Users/mmoller/codes/gismo.svn/stable/src -I/Users/mmoller/codes/gismo.svn/stable/external -I/Users/mmoller/codes/gismo.svn/stable/extensions -I/Users/mmoller/codes/gismo.svn/build-gcc6-compflow/stable/extensions/gsCoDiPack/CoDiPack/include -I/Users/mmoller/codes/gismo.svn/build-gcc6-compflow/stable -I/Users/mmoller/codes/gismo.svn/devel/external -I/Users/mmoller/codes/gismo.svn/build-gcc6-compflow/devel -I/Users/mmoller/codes/gismo.svn/motor/src -I/Users/mmoller/codes/gismo.svn/motor/tud/src

Is there an easy mechanism to explicitly force the generation of the above variables in CMakeLists.txt so that I could pass them to a configure file?

Thanks in advanced and kind regards,


Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe: