Skip to content

Commit

Permalink
visr_bear: fix pybind11 version check
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjnixon committed Apr 16, 2024
1 parent 3608733 commit 87af725
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions visr_bear/pythonwrappers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ set(BEAR_PYTHON_SITE_PACKAGES
# Check whether the pybind11 version used to build the VISR Python externals is
# compatible with the one used for building this library.
getvisrpybind11version(VISR::pythonsupport_shared VISR_PYBIND11_VERSION)
get_directory_property(pybind11_VERSION DIRECTORY ${PYBIND11_DIR} DEFINITION
pybind11_VERSION)

message(STATUS "VISR_PYBIND11_VERSION: " ${VISR_PYBIND11_VERSION})
if(NOT ${VISR_PYBIND11_VERSION} VERSION_EQUAL
${PYBIND11_VERSION_MAJOR}.${PYBIND11_VERSION_MINOR}.${PYBIND11_VERSION_PATCH}
)
message(STATUS "pybind11_VERSION: " ${pybind11_VERSION})
if(NOT ${VISR_PYBIND11_VERSION} VERSION_EQUAL ${pybind11_VERSION})
message(
WARNING
"Pybind11 version used in VISR differs from version used for library."
Expand Down

0 comments on commit 87af725

Please sign in to comment.