[CMake] ADD_CUSTOM_COMMAND and working directory
Juan Sanchez
Juan.Sanchez at amd.com
Wed Oct 3 14:44:37 EDT 2007
If I have multiple commands in ADD_CUSTOM_COMMAND, the WORKING_DIRECTORY
specifier seems to be ignored?
What is the proper syntax for having different working directories?
ADD_CUSTOM_COMMAND(
OUTPUT bar
COMMAND echo `pwd`
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMAND echo `pwd`
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
COMMAND echo `pwd`
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
ADD_CUSTOM_TARGET( zed ALL DEPENDS bar)
Will always print the source directory.
Thanks,
Juan
--
Juan Sanchez
Juan.Sanchez at amd.com
800-538-8450 Ext. 54395
512-602-4395
More information about the CMake
mailing list