mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-12 09:26:06 +01:00
CMakeLists: use --stdlib=libc++ on macOS only with clang
This commit is contained in:
parent
1506c27696
commit
43826d9277
@ -18,10 +18,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
|
||||
if (CMAKE_CXX_COMPILER MATCHES ".*clang")
|
||||
set(CMAKE_COMPILER_IS_CLANGXX 1)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-uninitialized")
|
||||
endif ()
|
||||
|
||||
if (APPLE)
|
||||
if (APPLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --stdlib=libc++")
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
find_program(CCACHE_EXECUTABLE NAMES ccache)
|
||||
|
Loading…
Reference in New Issue
Block a user