|
|
@@ -564,8 +564,13 @@ add_definitions(${GTK2_CFLAGS_OTHER})
|
|
|
add_definitions(-D__linux__)
|
|
|
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
|
|
|
|
-add_definitions(-std=c++11)
|
|
|
-add_definitions(-lstdc++)
|
|
|
+if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
|
|
+ # using Clang
|
|
|
+ add_definitions(-std=c++11 -stdlib=libc++)
|
|
|
+else()
|
|
|
+ add_definitions(-std=c++11)
|
|
|
+ add_definitions(-lstdc++)
|
|
|
+endif()
|
|
|
|
|
|
add_library(gameplay STATIC
|
|
|
${GAMEPLAY_SRC}
|