> 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"

Specify an absolute output  path here, usually using CMAKE_CURRENT_BINARY_DIR 
or something similar.
                                     
> "${TOOLS}\\BuildNumberUpdater.jar"                >       
> "${PROJECT_PATH}\\Frameworks\\Win32\\BuildNumber.h"
>                                                                               
>    DEPENDS ${SOURCES}
>                                                                               
>    COMMENT "Changing the build 
> numeber")

Typo here, "number".

> But the command is never invoked. Surely there's something wrong or 
> something that I don't understand, but what?

You probably need something to depend on that header.

Eike
_______________________________________________
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

Reply via email to