BUG: It seems the auto-object-depends feature does not work in Visual Studio. I'm restoring the explicit OBJECT_DEPENDS lines.
This commit is contained in:
parent
1c96fa4a41
commit
af5d324574
|
@ -129,13 +129,12 @@ ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/foo.c
|
||||||
${PROJECT_BINARY_DIR}/foo.c
|
${PROJECT_BINARY_DIR}/foo.c
|
||||||
)
|
)
|
||||||
|
|
||||||
# This object dependency is removed to test the new
|
# These object dependencies can be removed to test the
|
||||||
# auto-object-depends feature. If the feature is removed these lines
|
# auto-object-depends feature of the Makefile generator. Currently
|
||||||
# must be restored.
|
# the feature does not seem to work in Visual Studio generators so
|
||||||
#SET_SOURCE_FILES_PROPERTIES(${PROJECT_BINARY_DIR}/foo.c PROPERTIES
|
# these dependencies are needed.
|
||||||
# OBJECT_DEPENDS ${PROJECT_BINARY_DIR}/doc1.h)
|
SET_SOURCE_FILES_PROPERTIES(${PROJECT_BINARY_DIR}/foo.c PROPERTIES
|
||||||
#SET_SOURCE_FILES_PROPERTIES(${PROJECT_BINARY_DIR}/foo.c PROPERTIES
|
OBJECT_DEPENDS "${PROJECT_BINARY_DIR}/doc1.h;${PROJECT_BINARY_DIR}/foo.h")
|
||||||
# OBJECT_DEPENDS ${PROJECT_BINARY_DIR}/foo.h)
|
|
||||||
|
|
||||||
# add the library
|
# add the library
|
||||||
ADD_EXECUTABLE(CustomCommand
|
ADD_EXECUTABLE(CustomCommand
|
||||||
|
|
Loading…
Reference in New Issue