always compile with C++11 on OS X (Linux to follow)
This commit is contained in:
		
							parent
							
								
									acbba95032
								
							
						
					
					
						commit
						076944da5d
					
				| @ -43,7 +43,6 @@ add_executable(osrm-prepare ${PrepareSources} ) | |||||||
| 
 | 
 | ||||||
| add_executable(osrm-routed routed.cpp ) | add_executable(osrm-routed routed.cpp ) | ||||||
| set_target_properties(osrm-routed PROPERTIES COMPILE_FLAGS -DROUTED) | set_target_properties(osrm-routed PROPERTIES COMPILE_FLAGS -DROUTED) | ||||||
| 
 |  | ||||||
| add_executable(osrm-datastore datastore.cpp) | add_executable(osrm-datastore datastore.cpp) | ||||||
| 
 | 
 | ||||||
| file(GLOB DescriptorGlob Descriptors/*.cpp) | file(GLOB DescriptorGlob Descriptors/*.cpp) | ||||||
| @ -69,7 +68,7 @@ endif(CMAKE_BUILD_TYPE MATCHES Release) | |||||||
| #Configuring compilers | #Configuring compilers | ||||||
| if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | ||||||
| 	# using 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++") | 	message(STATUS "OpenMP parallelization not available using clang++") | ||||||
| elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | ||||||
| 	# using GCC | 	# using GCC | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user