Promote internal pybind11 ahead of system

This commit is contained in:
Seth Hillbrand 2021-04-28 15:28:20 -07:00
parent 2bde19bde2
commit 74e4370a9b
1 changed files with 2 additions and 1 deletions

View File

@ -770,7 +770,8 @@ include( ${SWIG_USE_FILE} )
# pybind11 is header-only, so include the subdir
add_subdirectory(thirdparty/pybind11)
include_directories( SYSTEM ${PYBIND11_INCLUDE_DIR} )
# Make sure that we get our pybind11 and not the system pybind11 (ours is patched to work with wx)
include_directories( BEFORE SYSTEM ${PYBIND11_INCLUDE_DIR} )
set( PythonInterp_FIND_VERSION 3.6 )
set( PythonLibs_FIND_VERSION 3.6 )