1
0
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:
Sergey Fedorov 2024-07-22 16:14:21 +08:00 committed by John Maguire
parent 1506c27696
commit 43826d9277

View File

@ -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)