b983a58bdf
The idea is to write to a temp file which contains generator expressions, and at generate time, evaluate the generator expressions, and write the result to a file. Because executables on Windows are limited in the length of command line it is possible to use, it is common to write command line arguments to a file instead and specify the file as a source of arguments. This new FILE(GENERATE) subcommand allows the use of generator expressions to create such files so that they can be used with add_custom_command for example.
11 lines
283 B
CMake
11 lines
283 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(CommandConflict)
|
|
if("${RunCMake_GENERATOR}" MATCHES "Visual Studio" OR "${RunCMake_GENERATOR}" MATCHES "XCode" )
|
|
run_cmake(OutputConflict)
|
|
endif()
|
|
run_cmake(EmptyCondition1)
|
|
run_cmake(EmptyCondition2)
|
|
run_cmake(BadCondition)
|
|
run_cmake(DebugEvaluate)
|