summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar James Rowe2015-02-25 14:58:47 -0700
committerGravatar James Rowe2015-03-26 04:04:22 -0600
commitfa79b3f4f47a53ed758cb781940bf2a6ba0f1111 (patch)
treec8604c59328ab3740a6794f0523922d526c04918
parentMerge pull request #672 from purpasmart96/citra_moar_app_mem (diff)
downloadyuzu-fa79b3f4f47a53ed758cb781940bf2a6ba0f1111.tar.gz
yuzu-fa79b3f4f47a53ed758cb781940bf2a6ba0f1111.tar.xz
yuzu-fa79b3f4f47a53ed758cb781940bf2a6ba0f1111.zip
Small changes to the CMake file to make windows build easier
-rw-r--r--CMakeLists.txt20
1 files changed, 13 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 516aba554..ef7c44004 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,19 +18,25 @@ else()
18 # changes intact, so we'll just clobber everything and say sorry. 18 # changes intact, so we'll just clobber everything and say sorry.
19 message(STATUS "Cache compiler flags ignored, please edit CMakeLists.txt to change the flags.") 19 message(STATUS "Cache compiler flags ignored, please edit CMakeLists.txt to change the flags.")
20 # /MP - Multi-threaded compilation 20 # /MP - Multi-threaded compilation
21 # /MD - Multi-threaded runtime
22 # /Ox - Full optimization 21 # /Ox - Full optimization
23 # /Oy- - Don't omit frame pointer 22 # /Oy- - Don't omit frame pointer
24 # /GR- - Disable RTTI 23 # /GR- - Disable RTTI
25 # /GS- - No stack buffer overflow checks 24 # /GS- - No stack buffer overflow checks
26 # /EHsc - C++-only exception handling semantics 25 # /EHsc - C++-only exception handling semantics
27 set(optimization_flags "/MP /MD /Ox /Oy- /GR- /GS- /EHsc") 26 set(optimization_flags "/MP /Ox /Oy- /GR- /GS- /EHsc")
28 # /Zi - Output debugging information 27 # /Zi - Output debugging information
29 # /Zo - enahnced debug info for optimized builds 28 # /Zo - enahnced debug info for optimized builds
30 set(CMAKE_C_FLAGS_RELEASE "${optimization_flags} /Zi" CACHE STRING "" FORCE) 29 # /MDd - Multi-threaded Debug Runtime DLL
31 set(CMAKE_CXX_FLAGS_RELEASE "${optimization_flags} /Zi" CACHE STRING "" FORCE) 30 set(CMAKE_C_FLAGS_DEBUG "${optimization_flags} /MDd /Zi /Zo" CACHE STRING "" FORCE)
32 set(CMAKE_C_FLAGS_RELWITHDEBINFO "${optimization_flags} /Zi /Zo" CACHE STRING "" FORCE) 31 set(CMAKE_CXX_FLAGS_DEBUG "${optimization_flags} /MDd /Zi /Zo" CACHE STRING "" FORCE)
33 set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${optimization_flags} /Zi /Zo" CACHE STRING "" FORCE) 32 # /MD - Multi-threaded runtime DLL
33 set(CMAKE_C_FLAGS_RELEASE "${optimization_flags} /MD /Zi" CACHE STRING "" FORCE)
34 set(CMAKE_CXX_FLAGS_RELEASE "${optimization_flags} /MD /Zi" CACHE STRING "" FORCE)
35 set(CMAKE_C_FLAGS_RELWITHDEBINFO "${optimization_flags} /MD /Zi /Zo" CACHE STRING "" FORCE)
36 set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${optimization_flags} /MD /Zi /Zo" CACHE STRING "" FORCE)
37
38 set(CMAKE_EXE_LINKER_FLAGS_DEBUG "/DEBUG" CACHE STRING "" FORCE)
39 set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "/DEBUG" CACHE STRING "" FORCE)
34endif() 40endif()
35 41
36add_definitions(-DSINGLETHREADED) 42add_definitions(-DSINGLETHREADED)
@@ -100,7 +106,7 @@ if (ENABLE_GLFW)
100 set(GLFW_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/externals/glfw-3.0.4.bin") 106 set(GLFW_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/externals/glfw-3.0.4.bin")
101 set(GLFW_INCLUDE_DIRS "${GLFW_PREFIX}/include" CACHE PATH "Path to GLFW3 headers") 107 set(GLFW_INCLUDE_DIRS "${GLFW_PREFIX}/include" CACHE PATH "Path to GLFW3 headers")
102 set(GLFW_LIBRARY_DIRS "${GLFW_PREFIX}/lib-${TMP_TOOLSET}" CACHE PATH "Path to GLFW3 libraries") 108 set(GLFW_LIBRARY_DIRS "${GLFW_PREFIX}/lib-${TMP_TOOLSET}" CACHE PATH "Path to GLFW3 libraries")
103 109
104 # Clean up after ourselves 110 # Clean up after ourselves
105 unset(TMP_TOOLSET) 111 unset(TMP_TOOLSET)
106 unset(TMP_ARCH) 112 unset(TMP_ARCH)