ca6ba3fee5
Some commands on Windows do not understand forward slash paths and require backslashes. In order to help projects generate shell invocations of such commands, provide a generator expression to convert paths to the shell-preferred path format for the current generator. This will allow custom commands to generate paths the same way CMake does for compiler command invocations.
5 lines
101 B
CMake
5 lines
101 B
CMake
add_custom_target(check ALL COMMAND check
|
|
$<SHELL_PATH:>
|
|
$<SHELL_PATH:Relative/Path>
|
|
VERBATIM)
|