Added a message for MSCV < 2015

This commit is contained in:
Jorrit Wronski
2017-11-16 00:01:20 +01:00
parent e12bb7bcfe
commit a5f7f9d0f8

View File

@@ -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