Hi there, I've noticed that when I run "make blah" then the makefile is automatically re-generated if I've changed anything in CMakeLists.txt since the last time I built "blah". However, if I add a new target to CMakeLists.txt then I have to run cmake manually or else I just get "to rule to make foo". This makes perfect sense but I was wondering if there is there any way to get cmake to put a catch-all rule in the Makefile that will cause CMakeLists.txt to be re-read even if a nonexistent target is specified on the commandline. Hence I would like to be able to add a target "foo" to CMakeLists.txt then just run "make foo" and cmake should be invoked to regenerate the makefile and the makefile should be invoked. This might sound pointless but I actually have a good motivation that I'd be happy to discuss if anyone is interested...
Cheers, Alex _______________________________________________ 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://www.cmake.org/mailman/listinfo/cmake