The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=13938 ====================================================================== Reported By: tasptz Assigned To: ====================================================================== Project: CMake Issue ID: 13938 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2013-02-20 11:03 EST Last Modified: 2013-02-20 11:03 EST ====================================================================== Summary: Incomplete header dependencies generated Description: I constructed a minimal example which reproduces the issue. The include tree is:
main.cpp -> a/a.h -> x.h (a.h includes x.h without path and x.h is in a/) \-> c/c.h -> x.h (c.h includes x.h without path and x.h is in c/) Now cmake detects the dependency only for one of the two x.h! Note: I even added all files to the executable add_executable(main main.cpp a/a.h a/x.h c/c.h c/x.h) Steps to Reproduce: 1. Compile the project. * project build must be successful! 2. Change a/x.h and check if the change is picked up by the build system 3. Change c/x.h and check if the change is picked up by the build system Either step 2 or step 3 should fail! Additional Information: I ran the following command in the build directory: $ rgrep "x.h" * CMakeFiles/main.dir/depend.make:CMakeFiles/main.dir/main.cpp.o: /home/poenitz/Desktop/bugreport/src/a/x.h CMakeFiles/main.dir/CXX.includecache:x.h CMakeFiles/main.dir/CXX.includecache:/removed/bugreport/src/a/x.h CMakeFiles/main.dir/CXX.includecache:/removed/bugreport/src/a/x.h CMakeFiles/main.dir/CXX.includecache:x.h CMakeFiles/main.dir/CXX.includecache:/removed/bugreport/src/c/x.h CMakeFiles/main.dir/depend.internal: /removed/bugreport/src/a/x.h ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2013-02-20 11:03 tasptz New Issue 2013-02-20 11:03 tasptz File Added: bugreport.zip ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers