diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-03-06 10:38:22 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-03-06 10:19:00 +0000 |
commit | d72b717119de3d9bad859c1e059c35f34697a3ac (patch) | |
tree | cfddc3ea2d846e001adf40cb895e020a247e94ad /src | |
parent | 32d4f139c85a91687cb641941994787d7f9bf1cf (diff) |
Fix build
There is no more internal function for adding general linker flags.
Let's use the appropriate cmake function right away, regardless of the
compiler choice. This is also how global.pri handled it.
Change-Id: I20c9002a31aa4d7e64c1c59d8d67118774da337c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt index edd2ae52ca..4fe51d031c 100644 --- a/src/corelib/CMakeLists.txt +++ b/src/corelib/CMakeLists.txt @@ -286,7 +286,7 @@ if (LINUX AND NOT CMAKE_CROSSCOMPILING AND BUILD_SHARED_LIBS) endif() endif() if (ELF_INTERPRETER) - qt_internal_add_link_flags(Core "-Wl,-e,qt_core_boilerplate") + target_link_options(Core PRIVATE "-Wl,-e,qt_core_boilerplate") target_compile_definitions(Core PRIVATE ELF_INTERPRETER="${ELF_INTERPRETER}") endif() endif() |