Skip to content

Commit 6b7c7e5

Browse files
author
Wenzel Jakob
committed
cmake fix: enable c++11 mode on Clang/GCC
1 parent 997175e commit 6b7c7e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
cmake_minimum_required(VERSION 2.8)
22
project(path)
3+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
4+
# Enable C++11 mode on GCC / Clang
5+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
6+
endif()
37
add_executable(path_demo path_demo.cpp filesystem/path.h filesystem/resolver.h)

0 commit comments

Comments
 (0)