From 8bd41ad60625bc1daa721e2f6faca6872c21113b Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Fri, 3 Feb 2017 04:42:52 +0100 Subject: [PATCH] cmake: Add missing Windows link flags --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e4d510ce0..94f524ed45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -196,6 +196,11 @@ if(CMAKE_C_COMPILER_ID MATCHES "MSVC") check_and_add_flag(EXCEPTIONS /EHsc) dolphin_compile_definitions(-D_DEBUG DEBUG_ONLY) + string(APPEND CMAKE_EXE_LINKER_FLAGS " /NXCOMPAT") + string(APPEND CMAKE_EXE_LINKER_FLAGS " /BASE:0x00400000") + string(APPEND CMAKE_EXE_LINKER_FLAGS " /DYNAMICBASE:NO") + string(APPEND CMAKE_EXE_LINKER_FLAGS " /FIXED") + # Only MSBuild needs this, other generators will compile one file at a time if(CMAKE_GENERATOR MATCHES "Visual Studio") add_compile_options("/MP")