From 58620856faf03e36fd57fa50362fc32f4b8cb9cb Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Sun, 15 Mar 2020 14:46:07 +0300 Subject: [cmake] Disable gnu extensions. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index d8a02b5..6587a48 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,8 @@ option(BUILD_SHARED_LIBS "Build tgbot-cpp shared/static library." OFF) # sources set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) if(WIN32) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) else() -- cgit v1.2.3