mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Darwin: Don't overwrite the C compiler if the user set one manually.
This commit is contained in:
parent
1bf2c03a99
commit
146cf56295
@ -25,11 +25,17 @@ option(UNITTESTS "Build unitests" OFF)
|
|||||||
# Update compiler before calling project()
|
# Update compiler before calling project()
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
# Use clang compiler
|
# Use clang compiler
|
||||||
set(CMAKE_C_COMPILER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang")
|
if (NOT DEFINED CMAKE_CXX_COMPILER)
|
||||||
set(CMAKE_CXX_COMPILER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++")
|
set(CMAKE_CXX_COMPILER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++")
|
||||||
if (NOT EXISTS "${CMAKE_CXX_COMPILER}")
|
if (NOT EXISTS "${CMAKE_CXX_COMPILER}")
|
||||||
set(CMAKE_C_COMPILER "clang")
|
set(CMAKE_CXX_COMPILER "clang++")
|
||||||
set(CMAKE_CXX_COMPILER "clang++")
|
endif()
|
||||||
|
endif()
|
||||||
|
if (NOT DEFINED CMAKE_CXX_COMPILER)
|
||||||
|
set(CMAKE_C_COMPILER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang")
|
||||||
|
if (NOT EXISTS "${CMAKE_C_COMPILER}")
|
||||||
|
set(CMAKE_C_COMPILER "clang")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
project(dolphin-emu)
|
project(dolphin-emu)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user