From a5f7f9d0f8ca4b1ad0d09483a8a8b44adc51f58f Mon Sep 17 00:00:00 2001 From: Jorrit Wronski Date: Thu, 16 Nov 2017 00:01:20 +0100 Subject: [PATCH] Added a message for MSCV < 2015 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fad3ef..af5a353 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall --coverage") set(INJA_SOURCE_DIR src) set(INJA_HEADER_INSTALL_DIR include) +if(WIN32 AND MSVC AND MSVC_VERSION LESS 1900) + message(FATAL_ERROR "[${PROJECT_NAME}] Visual Studio versions prior to 2015 do not support the noexcept keyword, which is used in the JSON library.") +endif() + ## ## TESTS ## create and configure the unit test target