Skip to content

Commit

Permalink
fixed cmake problem with gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ironbell committed Jan 15, 2017
1 parent 511d3ac commit 41150f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU"
message(FATAL_ERROR "Unsupported compiler. At least C++11 support is required.")
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
endif()

file(GLOB_RECURSE Cendric_FILES
Expand Down

0 comments on commit 41150f3

Please sign in to comment.