Merge topic 'custom-command-slashes'
a75a0a1
Normalize add_custom_command OUTPUT names (#10485)
This commit is contained in:
commit
92199485c0
|
@ -161,6 +161,7 @@ bool cmAddCustomCommandCommand
|
|||
filename += "/";
|
||||
}
|
||||
filename += copy;
|
||||
cmSystemTools::ConvertToUnixSlashes(filename);
|
||||
break;
|
||||
case doing_source:
|
||||
// We do not want to convert the argument to SOURCE because
|
||||
|
|
|
@ -55,7 +55,7 @@ ADD_CUSTOM_COMMAND(
|
|||
# Test creating files from a custom target
|
||||
#
|
||||
################################################################
|
||||
ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/doc1.dvi
|
||||
ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}//doc1.dvi # test 2 slashes
|
||||
DEPENDS ${PROJECT_SOURCE_DIR}/doc1.tex
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy ${PROJECT_SOURCE_DIR}/doc1.tex
|
||||
|
|
Loading…
Reference in New Issue