From 5f5c0e3949e41d8bceaa23b547447dc4d4ceda6e Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Wed, 12 Dec 2018 19:59:14 +0000 Subject: [PATCH] Update pybind11 to fix AppVeyor build Utumno experienced issues with Python modules built with more recent versions of pybind11, which is why I tried to avoid this, but it looks like it's necessary. --- CMakeLists.txt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b0bfef1..48eb959 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ configure_file("${CMAKE_SOURCE_DIR}/src/wrapper_version.cpp.in" "${CMAKE_BINARY_ # pybind11 ####################################### -set(PYBIND11_VERSION "2.1.1") +set(PYBIND11_VERSION "2.2.4") set(PYBIND11_URL "https://github.com/pybind/pybind11/archive/v${PYBIND11_VERSION}.tar.gz") set(PYBIND11_DOWNLOAD_PATH "${EXTERNAL_PROJECTS_PATH}/pybind11-${PYBIND11_VERSION}.tar.gz") set(PYBIND11_EXTRACTED_PATH "${EXTERNAL_PROJECTS_PATH}/pybind11-${PYBIND11_VERSION}") @@ -89,9 +89,6 @@ ExternalProject_Add(test-masterlist # Python Module ####################################### -# pybind11 v2.1.1 doesn't recognise MSVC as supporting C++17, so force it. -add_definitions(-DPYBIND11_CPP17) - pybind11_add_module(loot_api "${CMAKE_SOURCE_DIR}/src/main.cpp" "${CMAKE_SOURCE_DIR}/src/convenience.cpp" "${CMAKE_BINARY_DIR}/generated/wrapper_version.cpp")