[CMake] Updated code in header file ignored?

Alexander Neundorf a.neundorf-work at gmx.net
Mon Mar 18 13:19:10 EDT 2013


On Sunday 17 March 2013, Nick Overdijk wrote:
> Howdy,
> 
> I have a header file, vertices.hpp with some not-inline
> function-definitions (yes really defs not decls), and a project, beamer.
> Sometimes when I change vertices.hpp, the changes don't reflect in the
> binary. I was wondering why this is, so I grepped a bit in my build-dir:
> 
> ./motor/CMakeFiles/motor.dir/CXX.includecache:1224:vertices.hpp
> ./motor/CMakeFiles/motor.dir/CXX.includecache:1225:/Users/nick/Documents/Co
> de/new-onegame/motor/basic/vertices.hpp
> ./motor/CMakeFiles/motor.dir/CXX.includecache:1241:/Users/nick/Documents/C
> ode/new-onegame/motor/basic/vertices.hpp
> ./motor/CMakeFiles/motor.dir/depend.internal:438:
> /Users/nick/Documents/Code/new-onegame/motor/basic/vertices.hpp
> ./motor/CMakeFiles/motor.dir/depend.internal:558:
> /Users/nick/Documents/Code/new-onegame/motor/basic/vertices.hpp
> ./motor/CMakeFiles/motor.dir/depend.make:437:motor/CMakeFiles/motor.dir/ba
> sic/mesh.cpp.o: ../motor/basic/vertices.hpp
> ./motor/CMakeFiles/motor.dir/depend.make:557:motor/CMakeFiles/motor.dir/ba
> sic/resource_cache.cpp.o: ../motor/basic/vertices.hpp
> ./src/CMakeFiles/beamer.dir/CXX.includecache:116:vertices.hpp
> ./src/CMakeFiles/beamer.dir/CXX.includecache:117:../src/../motor/basic/vert
> ices.hpp ./src/CMakeFiles/beamer.dir/CXX.includecache:1462:vertices.hpp
> 
> And that's all mentions of vertices.hpp in beamer. Shouldn't I see
> vertices.hpp also in the depend.make or something?
> 
> Any other tips/suggestions/questions are more more more than welcome since
> this has been annoying me for quite some time.

can you create a stripped down version which reproduces the problem and which 
you can post here ?

Thanks
Alex


More information about the CMake mailing list