Fix building on mac without a c/c++ compiler set.

This commit is contained in:
Guilherme Espada 2014-01-05 12:18:05 +00:00
parent 3d0116e74f
commit dacd2431d3
1 changed files with 1 additions and 1 deletions

View File

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