diff --git a/CMakeLists.txt b/CMakeLists.txt index 46279c2..a3e36ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ -cmake_minimum_required (VERSION 2.8.12) +cmake_minimum_required (VERSION 3.1) project (loot_api_python) include(ExternalProject) @@ -54,7 +54,7 @@ add_subdirectory(${PYBIND11_EXTRACTED_PATH}) ####################################### if (CMAKE_SYSTEM_NAME MATCHES "Windows") - if (NOT "${CMAKE_GENERATOR}" MATCHES "(Win64|IA64)") + if (NOT "${CMAKE_GENERATOR_PLATFORM}" MATCHES "x64") set(LIBLOOT_URL "https://github.com/loot/libloot/releases/download/0.14.7/libloot-0.14.7-0-g1878d48_dev-win32.7z") else() set(LIBLOOT_URL "https://github.com/loot/libloot/releases/download/0.14.7/libloot-0.14.7-0-g1878d48_dev-win64.7z") diff --git a/appveyor.yml b/appveyor.yml index 66190b7..845a4fd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -30,7 +30,7 @@ before_build: if ($env:PLATFORM -eq 'Win32') { cmake .. -G "Visual Studio 15 2017" -DPYTHON_EXECUTABLE="C:\Python${env:PYTHON_DIRECTORY_VERSION}\python.exe" } else { - cmake .. -G "Visual Studio 15 2017 Win64" -DPYTHON_EXECUTABLE="C:\Python${env:PYTHON_DIRECTORY_VERSION}-x64\python.exe" + cmake .. -G "Visual Studio 15 2017" -A x64 -DPYTHON_EXECUTABLE="C:\Python${env:PYTHON_DIRECTORY_VERSION}-x64\python.exe" } build: