88eb5824da
Copy CMAKE_EXE_LINKER_FLAGS into the test project generated by try_compile, just like we already copy CMAKE_<LANG>_FLAGS. Add CMake Policy CMP0056 to activate this behavior in a compatible way, but do not warn by default when the policy is not set since it will affect all try_compile calls. Extend the RunCMake.try_compile test with a case covering this behavior for each policy setting.
7 lines
236 B
ReStructuredText
7 lines
236 B
ReStructuredText
try_compile-link-flags
|
|
----------------------
|
|
|
|
* The :command:`try_compile` command source file signature now honors
|
|
link flags (e.g. :variable:`CMAKE_EXE_LINKER_FLAGS`) in the generated
|
|
test project. See policy :policy:`CMP0056`.
|