[CMake] CMAKE_CXX_FLAGS

fatman at crackmonkey.us fatman at crackmonkey.us
Fri Oct 1 06:32:45 EDT 2010


It let me in more quickly than usual today. Let's look at the IO log.

cd cmake && make VERBOSE=1 all && cd ..
 in dir /home/arichardson/buildbot/Reu2/bin/vostro/build (timeout 1200
secs)
 watching logfiles {}
 argv: cd cmake && make VERBOSE=1 all && cd ..
<snip boring bits>
[  2%] Building CXX object
SmallTestLib/CMakeFiles/SmallTestLib.dir/src/SmallTestLib.cc.o
cd /home/arichardson/buildbot/Reu2/bin/vostro/build/cmake/SmallTestLib &&
/usr/lib/ccache/c++   -DSmallTestLib_EXPORTS -s -g -fPIC   -o
CMakeFiles/SmallTestLib.dir/src/SmallTestLib.cc.o -c
/home/arichardson/buildbot/Reu2/bin/vostro/build/SmallTestLib/src/SmallTestLib.cc
Linking CXX shared library ../../bin/libSmallTestLib-d.so
cd /home/arichardson/buildbot/Reu2/bin/vostro/build/cmake/SmallTestLib &&
/usr/bin/cmake -E cmake_link_script CMakeFiles/SmallTestLib.dir/link.txt
--verbose=1
/usr/lib/ccache/c++  -fPIC -s -g  -shared
-Wl,-soname,libSmallTestLib-d.so -o ../../bin/libSmallTestLib-d.so
CMakeFiles/SmallTestLib.dir/src/SmallTestLib.cc.o
<snip more boring bits>
[  5%] Building CXX object Reu2/CMakeFiles/Reu2.dir/src/TrayIcon.cc.o
cd /home/arichardson/buildbot/Reu2/bin/vostro/build/cmake/Reu2 &&
/usr/lib/ccache/c++    -s -I/usr/include/libxml2 -I/usr/include/libxml2
-I/usr/include -I/usr/include -g   -o
CMakeFiles/Reu2.dir/src/TrayIcon.cc.o -c
/home/arichardson/buildbot/Reu2/bin/vostro/build/Reu2/src/TrayIcon.cc
/usr/bin/cmake -E cmake_progress_report
/home/arichardson/buildbot/Reu2/bin/vostro/build/cmake/CMakeFiles 2
<snip most of the rest of the file>
elapsedTime=8.055578

I think I'll leave VERBOSE on, I like detailed logfiles.

Looks like you're right. This is my debug build, and I don't see any of
my flags in there (--pedantic, --std=c++0x, --gdwarf-2, etc).

I'll alter my CMakeLists.txt and see if your suggested edits make a
difference.


More information about the CMake mailing list