summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar archshift2014-04-29 19:27:01 -0700
committerGravatar archshift2014-04-29 19:27:01 -0700
commit52377cf0d2e29143717898e82f09349d417da1a0 (patch)
tree65568906f56f3470b5b29c3106b1e244584b99d9
parentMerge commit upstream/master into issue-7-fix (diff)
downloadyuzu-52377cf0d2e29143717898e82f09349d417da1a0.tar.gz
yuzu-52377cf0d2e29143717898e82f09349d417da1a0.tar.xz
yuzu-52377cf0d2e29143717898e82f09349d417da1a0.zip
Some more experimentation
-rw-r--r--CMakeLists.txt6
-rw-r--r--src/citra/CMakeLists.txt2
-rw-r--r--src/common/common.h6
3 files changed, 9 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd21af25e..49c1a384a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.6)
2 2
3project(citra) 3project(citra)
4 4
5SET(CMAKE_CXX_FLAGS "-std=c++11 -fpermissive")
5SET(CMAKE_CXX_FLAGS_DEBUG "-std=c++11 -fpermissive") 6SET(CMAKE_CXX_FLAGS_DEBUG "-std=c++11 -fpermissive")
6SET(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -fpermissive") 7SET(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -fpermissive")
7 8
@@ -19,7 +20,10 @@ find_package(OpenGL REQUIRED)
19pkg_search_module(GLFW REQUIRED glfw3) 20pkg_search_module(GLFW REQUIRED glfw3)
20 21
21IF (APPLE) 22IF (APPLE)
22 FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation) 23 FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation)
24 SET(CMAKE_CXX_FLAGS "-stdlib=libc++")
25 SET(CMAKE_CXX_FLAGS_DEBUG "-stdlib=libc++")
26 SET(CMAKE_CXX_FLAGS_RELEASE "-stdlib=libc++")
23ENDIF (APPLE) 27ENDIF (APPLE)
24 28
25include_directories(${GLFW_INCLUDE_DIRS}) 29include_directories(${GLFW_INCLUDE_DIRS})
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt
index ca272249f..25f476895 100644
--- a/src/citra/CMakeLists.txt
+++ b/src/citra/CMakeLists.txt
@@ -9,6 +9,6 @@ if (NOT X11_xf86vmode_LIB)
9endif() 9endif()
10 10
11add_executable(citra ${SRCS} ${HEADS}) 11add_executable(citra ${SRCS} ${HEADS})
12target_link_libraries(citra core common video_core GLEW pthread X11 Xxf86vm Xi Xcursor ${OPENGL_LIBRARIES} ${GLFW_LIBRARIES} rt ${X11_Xrandr_LIB} ${X11_xv86vmode_LIB}) 12target_link_libraries(citra core common video_core iconv pthread ${COREFOUNDATION_LIBRARY} ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLFW_LIBRARIES})
13 13
14#install(TARGETS citra RUNTIME DESTINATION ${bindir}) 14#install(TARGETS citra RUNTIME DESTINATION ${bindir})
diff --git a/src/common/common.h b/src/common/common.h
index 58de0c7d9..30a6761b7 100644
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -21,11 +21,11 @@
21 21
22#define STACKALIGN 22#define STACKALIGN
23 23
24#if __cplusplus >= 201103 || defined(_MSC_VER) || defined(__GXX_EXPERIMENTAL_CXX0X__) 24#if __cplusplus >= 201103L || defined(_MSC_VER) || defined(__GXX_EXPERIMENTAL_CXX0X__)
25#define HAVE_CXX11_SYNTAX 1 25#define HAVE_CXX11_SYNTAX 1
26#endif 26#endif
27 27
28#if HAVE_CXX11_SYNTAX 28//#if HAVE_CXX11_SYNTAX
29// An inheritable class to disallow the copy constructor and operator= functions 29// An inheritable class to disallow the copy constructor and operator= functions
30class NonCopyable 30class NonCopyable
31{ 31{
@@ -37,7 +37,7 @@ private:
37 NonCopyable(NonCopyable&); 37 NonCopyable(NonCopyable&);
38 NonCopyable& operator=(NonCopyable& other); 38 NonCopyable& operator=(NonCopyable& other);
39}; 39};
40#endif 40//#endif
41 41
42#include "common/log.h" 42#include "common/log.h"
43#include "common/common_types.h" 43#include "common/common_types.h"