[cmake-developers] [CMake 0014914]: [ninja] system wide header change doesn't start project rebuild.

Mantis Bug Tracker mantis at public.kitware.com
Tue May 13 03:34:50 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14914 
====================================================================== 
Reported By:                Pawel Sikora
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14914
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-05-13 03:34 EDT
Last Modified:              2014-05-13 03:34 EDT
====================================================================== 
Summary:                    [ninja] system wide header change doesn't start
project rebuild.
Description: 
for gnu/make generator it works as expected. for ninja generator it doesn't.

Steps to Reproduce: 
unpack attachment && ./configure.sh


% ./configure.sh                                                        
+ echo 'Configuring release ninja build...'
Configuring release ninja build...
+ mkdir -p cmake-ninja
+ cd cmake-ninja
+ cmake .. -GNinja -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /ahome/pawels/bugs/cmake-bug/cmake-ninja
+ ninja -j1
[2/2] Linking CXX executable main
+ echo ''
+ ninja -j1
ninja: no work to do.                          <===== BUG !
+ cd ..
+ echo 'Configuring release make build...'
Configuring release make build...
+ mkdir -p cmake-make
+ cd cmake-make
+ cmake .. -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /ahome/pawels/bugs/cmake-bug/cmake-make
+ make -j1
Scanning dependencies of target main
[100%] Building CXX object CMakeFiles/main.dir/main.cpp.o
Linking CXX executable main
[100%] Built target main
+ echo ''
+ make -j1
Scanning dependencies of target main
[100%] Building CXX object CMakeFiles/main.dir/main.cpp.o
Linking CXX executable main
[100%] Built target main
+ cd ..

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-05-13 03:34 Pawel Sikora   New Issue                                    
2014-05-13 03:34 Pawel Sikora   File Added: cmake-bug.tgz                    
======================================================================



More information about the cmake-developers mailing list