mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-29 10:31:03 -06:00
ENH: Make add_custom_command interpret relative OUTPUT locations with respect to the build tre instead of the source tree. This can greatly simplify user code since generating a file will not need to reference CMAKE_CURRENT_BINARY_DIR. The new behavior is what users expect 99% of the time.
This commit is contained in:
@@ -78,6 +78,9 @@ public:
|
||||
"This defines a new command that can be executed during the build "
|
||||
"process. The outputs named should be listed as source files in the "
|
||||
"target for which they are to be generated. "
|
||||
"If an output name is a relative path it will be interpreted "
|
||||
"relative to the build tree directory corresponding to the current "
|
||||
"source directory. "
|
||||
"Note that MAIN_DEPENDENCY is completely optional and is "
|
||||
"used as a suggestion to visual studio about where to hang the "
|
||||
"custom command. In makefile terms this creates a new target in the "
|
||||
|
||||
Reference in New Issue
Block a user