[CMake] add_custom_command problem
Eric Noulard
eric.noulard at gmail.com
Mon Jan 17 05:09:10 EST 2011
2011/1/17 Andrea Galeazzi <galeazzi at korg.it>:
> I'm trying to invoke a program which increment the build number on a header
> file. I'm currently using the following statement:
> add_custom_command(OUTPUT "./BuildNumber.h" COMMAND "java" ARGS "-jar"
> "${TOOLS}\\BuildNumberUpdater.jar"
>
> "${PROJECT_PATH}\\Frameworks\\Win32\\BuildNumber.h"
> DEPENDS ${SOURCES}
> COMMENT "Changing the build numeber")
> But the command is never invoked. Surely there's something wrong or
> something that I don't understand, but what?
Does any targets depends on the output "BuildNumber.h" ?
Did you try to specify OUTPUT with absolute path ?
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list