enable appveyor builds

This commit is contained in:
Tim Felgentreff 2015-11-23 18:14:07 +01:00
parent 4ffc265cc5
commit cee9e396c8
2 changed files with 12 additions and 2 deletions

View file

@ -934,10 +934,10 @@ endif()
if(ENABLE_MULTIBUILD)
if(WIN32 AND MSVC)
if(MSVC_VERSION GREATER 1800) # if > VC13
if(MSVC_VERSION GREATER 1600) # if > VC13
message("The project must be compiled with VS2013 or older. VS2015 has deprecated many functions that we still use.")
set(CMAKE_GENERATOR_TOOLSET "v120" CACHE STRING "Platform Toolset" FORCE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB:MSVCRT")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB:MSVCRT")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB:MSVCRT")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO /NODEFAULTLIB:MSVCRT")
endif()

10
appveyor.yml Normal file
View file

@ -0,0 +1,10 @@
environment:
VisualStudioVersion: 12.0
shallow_clone: true
before_build:
- mkdir build
- cd build
- appveyor DownloadFile http://stratagus.sourceforge.net/msvc-libs.zip
- 7z x msvc-libs.zip
- cmake -G "Visual Studio 12 2013" -DCMAKE_PREFIX_PATH="%cd%\\3rd" ..
- cd ..