diff options
| author | 2014-04-30 23:47:38 -0700 | |
|---|---|---|
| committer | 2014-04-30 23:47:38 -0700 | |
| commit | 7817d6c79a2c169eb90714c1a05745d208e8ad32 (patch) | |
| tree | ae12037360cc0a3a21d36127960f4cba8cc91b96 | |
| parent | Fixed indents (diff) | |
| download | yuzu-7817d6c79a2c169eb90714c1a05745d208e8ad32.tar.gz yuzu-7817d6c79a2c169eb90714c1a05745d208e8ad32.tar.xz yuzu-7817d6c79a2c169eb90714c1a05745d208e8ad32.zip | |
Support for C++11 on OSX
| -rw-r--r-- | CMakeLists.txt | 5 | ||||
| -rw-r--r-- | src/common/common.h | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6837d36fd..07a04c2c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -21,9 +21,8 @@ pkg_search_module(GLFW REQUIRED glfw3) | |||
| 21 | 21 | ||
| 22 | IF (APPLE) | 22 | IF (APPLE) |
| 23 | FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation) | 23 | FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation) |
| 24 | SET(CMAKE_CXX_FLAGS "-stdlib=libc++") | 24 | SET(CMAKE_CXX_FLAGS "-stdlib=libc++") |
| 25 | SET(CMAKE_CXX_FLAGS_DEBUG "-stdlib=libc++") | 25 | SET(CMAKE_EXE_LINKER_FLAGS "-stdlib=libc++") |
| 26 | SET(CMAKE_CXX_FLAGS_RELEASE "-stdlib=libc++") | ||
| 27 | ENDIF (APPLE) | 26 | ENDIF (APPLE) |
| 28 | 27 | ||
| 29 | #external includes | 28 | #external includes |
diff --git a/src/common/common.h b/src/common/common.h index 30a6761b7..2578d0010 100644 --- a/src/common/common.h +++ b/src/common/common.h | |||
| @@ -25,7 +25,7 @@ | |||
| 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 |
| 30 | class NonCopyable | 30 | class 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" |