[CMake] Problems with CVS-Build and Custom Commands using PRE_BUILD

Brad King brad.king at kitware.com
Tue Apr 26 08:55:12 EDT 2005


Bernhard Zach wrote:
> My CMakeLists.txt:
> 
> ADD_CUSTOM_TARGET(MyLib_AlwaysInstall ALL)
> 
> ADD_CUSTOM_COMMAND(TARGET MyLib_AlwaysInstall PRE_BUILD COMMAND echo ARGS
> "HELLO WORLD!!")
> 
> Working with the current version of cmake (2.1-20050426) does nothing with
> these lines. (Using NMake Generator)
> 
> Interesting: Using POST_BUILD will show the "Hello World"
> 
> The same CMakeLists.txt works fine using cmake 2.0.1
> 
> Any ideas?

It was a bug.  I've just fixed it and added a test to keep it working.

-Brad


More information about the CMake mailing list