From b65b87c8b4c377b0041008e5576f84c7b44bf585 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Tue, 24 Jan 2017 00:44:37 -0800 Subject: [PATCH] CMake: don't need to force Clang on macOS It's already the default! --- CMakeLists.txt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6aa16aada4..e2ace7a4fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,22 +73,7 @@ endif() # TODO: Add DSPSpy option(DSPTOOL "Build dsptool" OFF) -# Update compiler before calling project() if (APPLE) - # Use clang compiler - if (NOT DEFINED CMAKE_CXX_COMPILER) - set(CMAKE_CXX_COMPILER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++") - if (NOT EXISTS "${CMAKE_CXX_COMPILER}") - set(CMAKE_CXX_COMPILER "clang++") - endif() - endif() - if (NOT DEFINED CMAKE_C_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() - # This doesn't play with with the packaging script that doesn't understand @rpath set(CMAKE_MACOSX_RPATH OFF) endif()