15 lines
559 B
Diff
15 lines
559 B
Diff
|
Index: qimgv-0.8.3/qimgv/CMakeLists.txt
|
||
|
===================================================================
|
||
|
--- qimgv-0.8.3.orig/qimgv/CMakeLists.txt
|
||
|
+++ qimgv-0.8.3/qimgv/CMakeLists.txt
|
||
|
@@ -11,6 +11,9 @@ include(CMake/SRC_UI_Files.cmake)
|
||
|
# ADD RESOURCES
|
||
|
QT5_ADD_RESOURCES(RES resources.qrc)
|
||
|
|
||
|
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
|
||
|
+set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
|
||
|
+
|
||
|
# ADD EXECUTABLE
|
||
|
add_executable(qimgv ${SRC} ${SRC_Components} ${SRC_SourceContainers} ${SRC_Utils} ${SRC_Gui} ${RES} ${SRC_UI_Files} qimgv.rc)
|
||
|
|