From c2012e40ed52deffa5d3ec767f335e94e6a649c7 Mon Sep 17 00:00:00 2001 From: Joakim Soderberg Date: Sat, 23 Mar 2013 08:55:02 +0800 Subject: [PATCH] Check for GCC/G++ explicitly instead of simply Unix. Since we're setting gcc specific build flags. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b46d30..3e3db86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -302,9 +302,9 @@ if (UNIX) endif(UNIX) -if (UNIX) +if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) set( CMAKE_C_FLAGS "-Wall -Werror -O4 " ) -endif (UNIX) +endif () source_group("Headers Private" FILES ${HDR_PRIVATE}) source_group("Headers Public" FILES ${HDR_PUBLIC}) -- 2.7.4