diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2012-02-24 14:19:24 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2012-02-24 14:19:24 -0600 |
| commit | 8a8dc77ef19446f97d210f0602aaa218144adf0e (patch) | |
| tree | 74254a06ca1c76bb56b61026ed96651fb876977b | |
| parent | f15aeb26b37d88c451887709ead523e5aeb49390 (diff) | |
enable c++11 compilation in cmakelists
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | Source/Core/Common/Src/StdThread.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 80584b2555..c59e3f7c07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -552,6 +552,7 @@ option(UNITTESTS "Build unitests" OFF) ######################################## # Start compiling our code # +add_definitions(-std=c++0x) add_subdirectory(Source) diff --git a/Source/Core/Common/Src/StdThread.h b/Source/Core/Common/Src/StdThread.h index 6e9e903561..b64dbf2c4e 100644 --- a/Source/Core/Common/Src/StdThread.h +++ b/Source/Core/Common/Src/StdThread.h @@ -7,7 +7,9 @@ #if GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ // GCC 4.4 provides <thread> +#ifndef _GLIBCXX_USE_SCHED_YIELD #define _GLIBCXX_USE_SCHED_YIELD +#endif #include <thread> #else |
