From 265d5218d801a865d105b8d8b4bad4ec092549ad Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Thu, 16 Jan 2025 21:53:37 +0200 Subject: [PATCH] fix: don't override CMAKE_EXE_LINKER_FLAGS Append to it instead of overwriting it. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bbf50a..8805fb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ endif() #对DApplication 进行加速 -set(CMAKE_EXE_LINKER_FLAGS "-pie") +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie") add_subdirectory(src)