summaryrefslogtreecommitdiffstats
path: root/Tests/CustomCommand
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-08-17 21:56:14 (GMT)
committerBrad King <brad.king@kitware.com>2005-08-17 21:56:14 (GMT)
commitaf5d32457464b5af65aed2b04e7bb84b3e96f9a4 (patch)
tree87b543008680399ede7f8fd285e1bf56937b88fe /Tests/CustomCommand
parent1c96fa4a4122665fa5b4db26a84bbf5425d7b0dd (diff)
downloadCMake-af5d32457464b5af65aed2b04e7bb84b3e96f9a4.zip
CMake-af5d32457464b5af65aed2b04e7bb84b3e96f9a4.tar.gz
CMake-af5d32457464b5af65aed2b04e7bb84b3e96f9a4.tar.bz2
BUG: It seems the auto-object-depends feature does not work in Visual Studio. I'm restoring the explicit OBJECT_DEPENDS lines.
Diffstat (limited to 'Tests/CustomCommand')
-rw-r--r--Tests/CustomCommand/CMakeLists.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/Tests/CustomCommand/CMakeLists.txt b/Tests/CustomCommand/CMakeLists.txt
index 2faa64d..2a83e72 100644
--- a/Tests/CustomCommand/CMakeLists.txt
+++ b/Tests/CustomCommand/CMakeLists.txt
@@ -129,13 +129,12 @@ ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/foo.c
${PROJECT_BINARY_DIR}/foo.c
)
-# This object dependency is removed to test the new
-# auto-object-depends feature. If the feature is removed these lines
-# must be restored.
-#SET_SOURCE_FILES_PROPERTIES(${PROJECT_BINARY_DIR}/foo.c PROPERTIES
-# OBJECT_DEPENDS ${PROJECT_BINARY_DIR}/doc1.h)
-#SET_SOURCE_FILES_PROPERTIES(${PROJECT_BINARY_DIR}/foo.c PROPERTIES
-# OBJECT_DEPENDS ${PROJECT_BINARY_DIR}/foo.h)
+# These object dependencies can be removed to test the
+# auto-object-depends feature of the Makefile generator. Currently
+# the feature does not seem to work in Visual Studio generators so
+# these dependencies are needed.
+SET_SOURCE_FILES_PROPERTIES(${PROJECT_BINARY_DIR}/foo.c PROPERTIES
+ OBJECT_DEPENDS "${PROJECT_BINARY_DIR}/doc1.h;${PROJECT_BINARY_DIR}/foo.h")
# add the library
ADD_EXECUTABLE(CustomCommand