[cmake-developers] [CMake 0011713]: add_custom_command is not invoked
Mantis Bug Tracker
mantis at public.kitware.com
Mon Jan 17 10:26:27 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11713
======================================================================
Reported By: Galeazzi
Assigned To:
======================================================================
Project: CMake
Issue ID: 11713
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-01-17 10:26 EST
Last Modified: 2011-01-17 10:26 EST
======================================================================
Summary: add_custom_command is not invoked
Description:
I use the add_custom_command function in order to increment the build number. It
seems that add_custom_command is never invoked in the build process.
Steps to Reproduce:
You just unzip the attached file and generate a mingw makefiles or VS solution.
You can also change the following line in order to fit them with your paths:
add_custom_command(OUTPUT ./BuildNumber.h COMMAND "java" ARGS "-jar"
"c:\\Tools\\Updater\\BuildNumberUpdater.jar"
"M:\\ProvaCMake\\HelloExec\\BuildNumber.h"
DEPENDS ${SOURCES}
COMMENT "Changing the build number")
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-01-17 10:26 Galeazzi New Issue
2011-01-17 10:26 Galeazzi File Added: CMakeBug.rar
======================================================================
More information about the cmake-developers
mailing list