mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
b976b844d2
Modify cmCoreTryCompile to only recognize try_run arguments when actually parsing try_run. (The old behavior was to recognize try_run arguments for try_compile also and then complain.) This has a small chance that a try_run keyword will be consumed as part of a multi-valued keyword argument. However, this behavior is more consistent with other commands, as we don't normally treat keywords as universally reserved. Also, the code is noticeably simplified.
19 lines
512 B
Plaintext
19 lines
512 B
Plaintext
^CMake Warning \(dev\) at TryRunArgs.cmake:[0-9]+ \(try_compile\):
|
|
Unknown arguments:
|
|
|
|
"COMPILE_OUTPUT_VARIABLE"
|
|
"compOutputVar"
|
|
"RUN_OUTPUT_VARIABLE"
|
|
"runOutputVar"
|
|
"RUN_OUTPUT_STDOUT_VARIABLE"
|
|
"runOutputStdOutVar"
|
|
"RUN_OUTPUT_STDERR_VARIABLE"
|
|
"runOutputStdErrVar"
|
|
"WORKING_DIRECTORY"
|
|
"runWorkDir"
|
|
"ARGS"
|
|
"runArgs"
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:[0-9]+ \(include\)
|
|
This warning is for project developers. Use -Wno-dev to suppress it.$
|