if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(WARNING_FLAGS_CXX "-Wall -Wno-overloaded-virtual")
set(WARNING_FLAGS_C "-Wall")
+ set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
+ set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c++11")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++")
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
{
CocoaAutoreleasePool ap;
NSFileManager* fm = [NSFileManager defaultManager];
- NSURL* pathUrl = [fm URLForDirectory:dirType
- inDomain:domainMask
- appropriateForURL:Nil
- create:YES
- error:nil];
+ NSSearchPathDirectory d = static_cast<NSSearchPathDirectory>(dirType);
+ NSURL* pathUrl = [fm URLForDirectory:d
+ inDomain:domainMask
+ appropriateForURL:Nil
+ create:YES
+ error:nil];
if (!pathUrl) {
return def;;
}