From fb4c7de1eaa65ceb68ca557e7878e5efabb607a9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 16 Oct 2016 08:52:07 +0300 Subject: CMakeLists.txt update --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a859f3..21b9071 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ project(privilege_check CXX) if(MSVC) add_compile_options(/MP /W4) -elseif(CMAKE_COMPILER_IS_GNUCXX) +elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) add_compile_options(-Wall -Wextra) endif() @@ -52,7 +52,7 @@ add_executable(${PROJECT_NAME} WIN32 ${${PROJECT_NAME}_header_files} ${${PROJECT_NAME}_resource_files}) -if(CMAKE_COMPILER_IS_GNUCXX) +if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) target_compile_options(${PROJECT_NAME} PRIVATE -std=c++11) endif() -- cgit v1.2.3