summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Pugin <egor.pugin@gmail.com>2020-03-15 14:46:07 +0300
committerEgor Pugin <egor.pugin@gmail.com>2020-03-15 14:46:07 +0300
commit58620856faf03e36fd57fa50362fc32f4b8cb9cb (patch)
tree7f38bb81b307f9cade2e48c876aba03e852aa935 /CMakeLists.txt
parent8996008c4aab3626455e72008b68cfcd95544b90 (diff)
[cmake] Disable gnu extensions.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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()