Browse Source

update python bindings

dev
parent
commit
90b73a9d21
  1. 14
      src/python/CMakeLists.txt

14
src/python/CMakeLists.txt

@ -35,16 +35,10 @@ elseif(NOT pybind11_VERSION)
set(pybind11_VERSION ${PYBIND11_VERSION_MAJOR}.${PYBIND11_VERSION_MINOR}.${PYBIND11_VERSION_PATCH}) set(pybind11_VERSION ${PYBIND11_VERSION_MAJOR}.${PYBIND11_VERSION_MINOR}.${PYBIND11_VERSION_PATCH})
endif() endif()
# In pybind11 2.2.4 and below, pybind11_add_module() added the include # Newer pybind11 versions route pybind11_add_module() through FindPython and no
# directories as non-system. That, combined with Corrade's warning level, added # longer accept SYSTEM as a positional compatibility argument. Keep this empty
# an insane amount of warnings to the build. Since 2.3 it was possible to # in the Oasis superproject build.
# override that by passing SYSTEM to pybind11_add_module(), HOWEVER since 2.6 set(pybind11_add_module_SYSTEM)
# doing so causes an ANNOYING warning because they made that a default. That
# all in a span of barely two years. Can't things just stay stable for a little
# moment?!
if(pybind11_VERSION VERSION_LESS 2.6)
set(pybind11_add_module_SYSTEM SYSTEM)
endif()
# UGH FFS # UGH FFS
get_property(CMAKE_GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) get_property(CMAKE_GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)

Loading…
Cancel
Save