aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-16 08:52:07 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-16 08:52:07 +0300
commitfb4c7de1eaa65ceb68ca557e7878e5efabb607a9 (patch)
treedd627106bc455eb9cdad9e4bb4456a878b011fda
parentCMakeLists.txt update (diff)
downloadprivilege-check-fb4c7de1eaa65ceb68ca557e7878e5efabb607a9.tar.gz
privilege-check-fb4c7de1eaa65ceb68ca557e7878e5efabb607a9.zip
CMakeLists.txt update
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
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()