*/}}
Browse Source

-no-pie in cmake

YimingWu 1 year ago
parent
commit
b5bb53edf5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      CMakeLists.txt

+ 3 - 0
CMakeLists.txt

@@ -10,6 +10,9 @@ include (InstallRequiredSystemLibraries)
 
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
 
+set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-no-pie")
+set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-no-pie")
+
 find_package(lagui REQUIRED)
 find_package(PNG REQUIRED)
 find_package(LCMS2 REQUIRED)