From 5e61a443832f88290431185f262a46a1a841d953 Mon Sep 17 00:00:00 2001 From: Sascha Kratky Date: Thu, 8 Dec 2016 14:39:57 +0100 Subject: [PATCH] set language standard variables in example project --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77d01d7..ca5270d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,11 @@ project (CotireExample) set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") +if (NOT CMAKE_VERSION VERSION_LESS "3.1.0") + set (CMAKE_CXX_STANDARD "98") + set (CMAKE_CXX_EXTENSIONS OFF) +endif() + include(cotire) add_subdirectory(src)