Many of my CMakeLists.txt files has code like this:

FILE(GLOB SRC *.cpp *.c)
ADD_LIBRARY(my_lib ${SRC})

My users occasionally get tripped up because after someone adds a new .cpp 
file, the other users forget to rerun "cmake" before running "make".

Has anyone considered enhancing CMake so that when the set of source files 
picked up by a FILE(GLOB ...) command changes, cmake is automatically re-run?

Even if a new command had to be added, or a new option to the FILE(...) 
command, that would be fine.  But this is probably the main problem I'm seeing 
my users encounter with our CMake-based build system.  I'd be very happy if we 
could eliminate it.


Christian Convey
Scientist, Naval Undersea Warfare Centers
Newport, RI

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to