enable c++11 compilation in cmakelists

This commit is contained in:
Jordan Woyak 2012-02-24 14:19:24 -06:00
parent f15aeb26b3
commit 8a8dc77ef1
2 changed files with 3 additions and 0 deletions

View File

@ -552,6 +552,7 @@ option(UNITTESTS "Build unitests" OFF)
######################################## ########################################
# Start compiling our code # Start compiling our code
# #
add_definitions(-std=c++0x)
add_subdirectory(Source) add_subdirectory(Source)

View File

@ -7,7 +7,9 @@
#if GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ #if GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__
// GCC 4.4 provides <thread> // GCC 4.4 provides <thread>
#ifndef _GLIBCXX_USE_SCHED_YIELD
#define _GLIBCXX_USE_SCHED_YIELD #define _GLIBCXX_USE_SCHED_YIELD
#endif
#include <thread> #include <thread>
#else #else