diff --git a/appveyor.yml b/appveyor.yml index f5753ee..cdb2448 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,7 +5,7 @@ configuration: - RelWithDebInfo before_build: - - cmake -G "Visual Studio 14 2015" source/compiler -DCPACK_GENERATOR=ZIP + - cmake -G "Visual Studio 12 2013" source/compiler -DCPACK_GENERATOR=ZIP build_script: - cmake --build . --config %CONFIGURATION% diff --git a/source/compiler/CMakeLists.txt b/source/compiler/CMakeLists.txt index 63a0e39..74d9d45 100644 --- a/source/compiler/CMakeLists.txt +++ b/source/compiler/CMakeLists.txt @@ -45,7 +45,11 @@ if(HAVE_STRLCAT) endif() if(MSVC) - add_definitions(-D_CRT_SECURE_NO_WARNINGS /J) + add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE /J) + if(MSVC LESS 1900) + # MSVC 2013 and below don't support the "inline" keyword + add_definitions(-Dinline=__inline) + endif() endif() if(UNIX)