MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013069 | CMake | CMake | public | 2012-03-28 16:21 | 2013-01-09 10:55 |
Reporter | Ben Boeckel | ||||
Assigned To | Peter Collingbourne | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.8 | ||||
Target Version | CMake 2.8.9 | Fixed in Version | CMake 2.8.9 | ||
Summary | 0013069: Ninja: CMAKE_<LANG>_FLAGS_<TYPE> flags not applied to executable commands | ||||
Description | When compiling with custom flags which are applied per-build type, they are not added to the linker line with the Ninja generator. The commands run by ninja and make are pasted below for comparison. With ninja: [1/6] /usr/lib64/ccache/gcc -g -O0 -pg -fprofile-arcs -ftest-coverage -DFLAG=\"Debug\" -MMD -MF CMakeFiles/lib.dir/lib.c.o.d -o CMakeFiles/lib.dir/lib.c.o -c ../lib.c [2/6] /usr/lib64/ccache/gcc -Dlib_shared_EXPORTS -g -O0 -pg -fprofile-arcs -ftest-coverage -DFLAG=\"Debug\" -fPIC -MMD -MF CMakeFiles/lib_shared.dir/lib.c.o.d -o CMakeFiles/lib_shared.dir/lib.c.o -c ../lib.c [3/6] : && /usr/lib64/ccache/gcc -fPIC -g -O0 -pg -fprofile-arcs -ftest-coverage -DFLAG=\"Debug\" -shared -Wl,-soname,liblib_shared.so -o liblib_shared.so CMakeFiles/lib_shared.dir/lib.c.o && : [4/6] : && /home/boeckb/code/cmake/build/bin/cmake -E remove liblib.a && /usr/bin/ar cr liblib.a CMakeFiles/lib.dir/lib.c.o && /usr/bin/ranlib liblib.a && : [5/6] /usr/lib64/ccache/gcc -g -O0 -pg -fprofile-arcs -ftest-coverage -DFLAG=\"Debug\" -MMD -MF CMakeFiles/flags.dir/flags.c.o.d -o CMakeFiles/flags.dir/flags.c.o -c ../flags.c [6/6] : && /usr/lib64/ccache/gcc -fPIC CMakeFiles/flags.dir/flags.c.o -o flags -rdynamic liblib.a && : With Unix Makefiles: /usr/lib64/ccache/gcc -g -O0 -pg -fprofile-arcs -ftest-coverage -DFLAG=\"Debug\" -o CMakeFiles/lib.dir/lib.c.o -c /home/boeckb/misc/code/sb/ninja/lib.c /usr/bin/ar cr liblib.a CMakeFiles/lib.dir/lib.c.o /usr/bin/ranlib liblib.a /usr/lib64/ccache/gcc -g -O0 -pg -fprofile-arcs -ftest-coverage -DFLAG=\"Debug\" -o CMakeFiles/flags.dir/flags.c.o -c /home/boeckb/misc/code/sb/ninja/flags.c /usr/lib64/ccache/gcc -g -O0 -pg -fprofile-arcs -ftest-coverage -DFLAG=\"Debug\" CMakeFiles/flags.dir/flags.c.o -o flags -rdynamic liblib.a /usr/lib64/ccache/gcc -Dlib_shared_EXPORTS -g -O0 -pg -fprofile-arcs -ftest-coverage -DFLAG=\"Debug\" -fPIC -o CMakeFiles/lib_shared.dir/lib.c.o -c /home/boeckb/misc/code/sb/ninja/lib.c /usr/lib64/ccache/gcc -fPIC -g -O0 -pg -fprofile-arcs -ftest-coverage -DFLAG=\"Debug\" -shared -Wl,-soname,liblib_shared.so -o liblib_shared.so CMakeFiles/lib_shared.dir/lib.c.o | ||||
Steps To Reproduce | Attached tarball with CMakeLists and shell script used to track down the error. Run the shell script as: cmake=/path/to/cmake sh mktrees.sh | ||||
Additional Information | cmake-2.8.8-git58db6ac ninja-master-gitabd33d5 | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ninja-flags.tar.bz2 (1,048) 2012-03-28 16:21 https://public.kitware.com/Bug/file/4270/ninja-flags.tar.bz2 cmake-0001-Ninja-Fix-13069-CMAKE_-LANG-_FLAGS_-TYPE-flags-not-a.patch (1,350) 2012-04-26 07:11 https://public.kitware.com/Bug/file/4316/cmake-0001-Ninja-Fix-13069-CMAKE_-LANG-_FLAGS_-TYPE-flags-not-a.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-03-28 16:21 | Ben Boeckel | New Issue | |||
2012-03-28 16:21 | Ben Boeckel | File Added: ninja-flags.tar.bz2 | |||
2012-03-28 17:07 | Brad King | Assigned To | => Peter Collingbourne | ||
2012-03-28 17:07 | Brad King | Status | new => assigned | ||
2012-04-26 07:11 | Zaheer Chothia | Note Added: 0029347 | |||
2012-04-26 07:11 | Zaheer Chothia | File Added: cmake-0001-Ninja-Fix-13069-CMAKE_-LANG-_FLAGS_-TYPE-flags-not-a.patch | |||
2012-05-16 18:10 | Peter Collingbourne | Note Added: 0029488 | |||
2012-07-03 06:40 | Peter Kuemmel | Note Added: 0029891 | |||
2012-07-03 06:40 | Peter Kuemmel | Status | assigned => resolved | ||
2012-07-03 06:40 | Peter Kuemmel | Resolution | open => fixed | ||
2012-08-09 16:54 | David Cole | Fixed in Version | => CMake 2.8.9 | ||
2012-08-09 16:54 | David Cole | Target Version | => CMake 2.8.9 | ||
2013-01-09 10:55 | Robert Maynard | Note Added: 0032014 | |||
2013-01-09 10:55 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|