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

Bernhard Zach bzach at hyperwave.com
Tue Apr 26 07:47:37 EDT 2005


Hi!

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?

Thanks,
Bernhard



More information about the CMake mailing list