From 0895cdc8adf73cb065d6853163fdfd3bc5e65b9f Mon Sep 17 00:00:00 2001 From: jackpoz Date: Mon, 30 Dec 2013 16:50:16 +0100 Subject: Buildsystem: Fix GCC not being recognized on Ubuntu Fix CMake not recognizing /usr/bin/cc as GCC on Ubuntu ( 13.10 x64 ) . --- cmake/platform/unix/settings.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/platform/unix') diff --git a/cmake/platform/unix/settings.cmake b/cmake/platform/unix/settings.cmake index b0c0d260623..42bfefa6994 100644 --- a/cmake/platform/unix/settings.cmake +++ b/cmake/platform/unix/settings.cmake @@ -33,7 +33,7 @@ add_custom_target(uninstall message(STATUS "UNIX: Created uninstall target") message(STATUS "UNIX: Detected compiler: ${CMAKE_C_COMPILER}") -if(CMAKE_C_COMPILER MATCHES "gcc") +if(CMAKE_C_COMPILER MATCHES "gcc" OR CMAKE_C_COMPILER_ID STREQUAL "GNU") include(${CMAKE_SOURCE_DIR}/cmake/compiler/gcc/settings.cmake) elseif(CMAKE_C_COMPILER MATCHES "icc") include(${CMAKE_SOURCE_DIR}/cmake/compiler/icc/settings.cmake) -- cgit v1.2.3