diff options
author | myrtle <gatecat@ds0.me> | 2022-07-05 09:25:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 09:25:03 +0200 |
commit | 7e64c326e02a3d2ebd4ac0d686695fd5b7887cb7 (patch) | |
tree | d15aaade3f6dde37e86c5cd363ff4358e46dcb59 | |
parent | b4337d99fde46abe85cab8bdf98a681eefe1f3e1 (diff) | |
parent | 9914f56137e152a46a921f88bc894bbced3d4c27 (diff) | |
download | nextpnr-7e64c326e02a3d2ebd4ac0d686695fd5b7887cb7.tar.gz nextpnr-7e64c326e02a3d2ebd4ac0d686695fd5b7887cb7.tar.bz2 nextpnr-7e64c326e02a3d2ebd4ac0d686695fd5b7887cb7.zip |
Merge pull request #1002 from gsomlo/gls-pybind11-unbundle
Enable building against unbundled pybind11
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e0001447..3812f7dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -216,7 +216,12 @@ configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/common/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/generated/version.h ) -include_directories(common/kernel/ common/place/ common/route/ json/ frontend/ 3rdparty/json11/ 3rdparty/pybind11/include ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}) +if (NOT DEFINED PYBIND11_INCLUDE_DIR) + # Use bundled pybind11 + set(PYBIND11_INCLUDE_DIR "3rdparty/pybind11/include") +endif() + +include_directories(common/kernel/ common/place/ common/route/ json/ frontend/ 3rdparty/json11/ ${PYBIND11_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}) if(BUILD_HEAP) find_package (Eigen3 REQUIRED NO_MODULE) |