Skip to content

Commit 41150f3

Browse files
committedJan 15, 2017
fixed cmake problem with gcc
1 parent 511d3ac commit 41150f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU"
4545
message(FATAL_ERROR "Unsupported compiler. At least C++11 support is required.")
4646
endif()
4747

48-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
48+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
49+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
50+
endif()
4951
endif()
5052

5153
file(GLOB_RECURSE Cendric_FILES

0 commit comments

Comments
 (0)
Please sign in to comment.