aboutsummaryrefslogtreecommitdiff
path: root/cmake/platform
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2013-12-30 16:50:16 +0100
committerjackpoz <giacomopoz@gmail.com>2013-12-30 16:50:16 +0100
commit0895cdc8adf73cb065d6853163fdfd3bc5e65b9f (patch)
tree61b8b9d2f43d094b451e275e2a9e5b1be6281363 /cmake/platform
parent799daaae551556fce9a261c1280dd54cfd45aedd (diff)
Buildsystem: Fix GCC not being recognized on Ubuntu
Fix CMake not recognizing /usr/bin/cc as GCC on Ubuntu ( 13.10 x64 ) .
Diffstat (limited to 'cmake/platform')
-rw-r--r--cmake/platform/unix/settings.cmake2
1 files changed, 1 insertions, 1 deletions
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)