[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.40 1.41 foo.in 1.4 1.5 gen_once.c.in 1.1 NONE
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Jun 2 16:45:09 EDT 2008
Update of /cvsroot/CMake/CMake/Tests/CustomCommand
In directory public:/mounts/ram/cvs-serv1349/Tests/CustomCommand
Modified Files:
CMakeLists.txt foo.in
Removed Files:
gen_once.c.in
Log Message:
ENH: Remove SKIP_RULE_DEPENDS option from add_custom_command()
- Option was recently added but never released.
- Custom commands no longer depend on build.make so we do
not need the option.
- Rule hashes now take care of rebuilding when rules change
so the dependency is not needed.
Index: foo.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CustomCommand/foo.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** foo.in 14 May 2008 15:38:47 -0000 1.4
--- foo.in 2 Jun 2008 20:45:07 -0000 1.5
***************
*** 7,15 ****
int generated();
int wrapped();
- int gen_once(void);
int main ()
{
! if (generated()*wrapped()*doc()*gen_once() == 3*5*7*11)
{
FILE* fin = fopen(PROJECT_BINARY_DIR "/not_included.h", "r");
--- 7,14 ----
int generated();
int wrapped();
int main ()
{
! if (generated()*wrapped()*doc() == 3*5*7)
{
FILE* fin = fopen(PROJECT_BINARY_DIR "/not_included.h", "r");
--- gen_once.c.in DELETED ---
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CustomCommand/CMakeLists.txt,v
retrieving revision 1.40
retrieving revision 1.41
diff -C 2 -d -r1.40 -r1.41
*** CMakeLists.txt 14 May 2008 15:38:46 -0000 1.40
--- CMakeLists.txt 2 Jun 2008 20:45:07 -0000 1.41
***************
*** 152,163 ****
${PROJECT_BINARY_DIR}/not_included.h
gen_redirect.c # default location for custom commands is in build tree
- gen_once.c
- )
-
- # Add a rule with no dependencies.
- ADD_CUSTOM_COMMAND(
- OUTPUT gen_once.c
- COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/gen_once.c.in ${PROJECT_BINARY_DIR}/gen_once.c
- SKIP_RULE_DEPENDS
)
--- 152,155 ----
More information about the Cmake-commits
mailing list