summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-03-06 10:38:22 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2019-03-06 10:19:00 +0000
commitd72b717119de3d9bad859c1e059c35f34697a3ac (patch)
treecfddc3ea2d846e001adf40cb895e020a247e94ad
parent32d4f139c85a91687cb641941994787d7f9bf1cf (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>
-rw-r--r--src/corelib/CMakeLists.txt2
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()