c28715b16c
When the COPY_FILE operation fails optionally capture the error message with a COPY_FILE_ERROR option instead of reporting the error immediately. This gives callers a chance to do something else or report the error. Teach the RunCMake.try_compile test to cover bad argument combinations involving COPY_FILE_ERROR. Teach the TryCompile test to cover the case of a COPY_FILE error message captured by COPY_FILE_ERROR.
18 lines
401 B
CMake
18 lines
401 B
CMake
include(RunCMake)
|
|
|
|
run_cmake(CopyFileErrorNoCopyFile)
|
|
run_cmake(NoArgs)
|
|
run_cmake(OneArg)
|
|
run_cmake(TwoArgs)
|
|
run_cmake(NoCopyFile)
|
|
run_cmake(NoCopyFile2)
|
|
run_cmake(NoCopyFileError)
|
|
run_cmake(NoOutputVariable)
|
|
run_cmake(NoOutputVariable2)
|
|
run_cmake(NoSources)
|
|
run_cmake(BadLinkLibraries)
|
|
run_cmake(BadSources1)
|
|
run_cmake(BadSources2)
|
|
run_cmake(NonSourceCopyFile)
|
|
run_cmake(NonSourceCompileDefinitions)
|