Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrockihack <rocki.hack@gmail.com>2017-09-04 14:42:20 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2017-10-05 23:01:04 +0300
commit4e90179065b51a7075f1057205e554c85c9d037e (patch)
treef645392df075e9c269123f9668f182688b473cf0 /src/CMakeLists.txt
parent43f85a787ba69f8fec953e475be3f9701dce519f (diff)
Enable DEP & ASLR on Windows
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f871836cf..2133b6c2e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -8,6 +8,12 @@ if(NOT TOKEN_AUTH_ONLY)
find_package(Qt5Keychain REQUIRED)
endif()
+if(WIN32)
+ # Enable DEP & ASLR
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--nxcompat -Wl,--dynamicbase")
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--nxcompat -Wl,--dynamicbase")
+endif()
+
add_subdirectory(csync)
add_subdirectory(libsync)
if (NOT BUILD_LIBRARIES_ONLY)