mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 01:03:59 +02:00
also bumps standard library version for clang (untested)
This commit is contained in:
parent
02d5f6bc62
commit
3a55234436
1 changed files with 9 additions and 3 deletions
|
@ -9,10 +9,16 @@ set(PORTAUDIO_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external/portaudio)
|
|||
project(interface)
|
||||
|
||||
# ++ C++ version
|
||||
if (NOT MSVC)
|
||||
# msvc defaults to latest version
|
||||
if (NOT MSVC AND NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
# ...assume clang
|
||||
add_definitions("-std=c++0x")
|
||||
endif (NOT MSVC)
|
||||
add_definitions("-stdlib=libc++")
|
||||
elseif (NOT MSVC)
|
||||
# this one works for GCC...
|
||||
add_definitions("-std=c++0x")
|
||||
# ...and msvc defaults to latest version
|
||||
endif ()
|
||||
|
||||
|
||||
if (APPLE)
|
||||
# link in required OS X frameworks and include the right GL headers
|
||||
|
|
Loading…
Reference in a new issue