CMake: Pass CMAKE_EXE_LINKER_FLAGS to project-based try_compile
CMake does it for non-project-based try_compile calls if the CMP0056 policy is set to NEW. That was introduced in CMake 3.2, thus set it unconditionally. The use case is to pick up custom -rpath-link paths when cross-compiling. Pick-to: 6.4 6.5 Change-Id: I726b90267dd46de116052b5b7f19b9354a568200 Reviewed-by: Dimitrios Apostolou <jimis@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
6d054270fc
commit
595ac662ed
@ -1007,6 +1007,7 @@ function(qt_get_platform_try_compile_vars out_var)
|
||||
list(APPEND flags "CMAKE_CXX_FLAGS_RELEASE")
|
||||
list(APPEND flags "CMAKE_CXX_FLAGS_RELWITHDEBINFO")
|
||||
list(APPEND flags "CMAKE_OBJCOPY")
|
||||
list(APPEND flags "CMAKE_EXE_LINKER_FLAGS")
|
||||
|
||||
# Pass toolchain files.
|
||||
if(CMAKE_TOOLCHAIN_FILE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user