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()