From dacd2431d38b2dcff6a7d35b074c32e817bc46c6 Mon Sep 17 00:00:00 2001 From: Guilherme Espada Date: Sun, 5 Jan 2014 12:18:05 +0000 Subject: [PATCH] Fix building on mac without a c/c++ compiler set. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 547e57a01b..ab440907bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ if (APPLE) set(CMAKE_CXX_COMPILER "clang++") endif() endif() - if (NOT DEFINED CMAKE_CXX_COMPILER) + 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")