From 076944da5db2861206fe0194f479f0a61c6ee9b7 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 10 Oct 2013 14:32:10 +0200 Subject: [PATCH] always compile with C++11 on OS X (Linux to follow) --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 375af49fd..951ac4343 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,6 @@ add_executable(osrm-prepare ${PrepareSources} ) add_executable(osrm-routed routed.cpp ) set_target_properties(osrm-routed PROPERTIES COMPILE_FLAGS -DROUTED) - add_executable(osrm-datastore datastore.cpp) file(GLOB DescriptorGlob Descriptors/*.cpp) @@ -69,7 +68,7 @@ endif(CMAKE_BUILD_TYPE MATCHES Release) #Configuring compilers if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") # using Clang - set(CMAKE_CXX_FLAGS "-Wall -Wno-unknown-pragmas -Wno-unneeded-internal-declaration") + set(CMAKE_CXX_FLAGS "-Wall -Wno-unknown-pragmas -Wno-unneeded-internal-declaration -std=c++11") message(STATUS "OpenMP parallelization not available using clang++") elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") # using GCC