Skip to content

Commit

Permalink
Merge pull request #19 from Intermodalics/fix/destdir-support
Browse files Browse the repository at this point in the history
Ignore DESTDIR for the internal ExternalProject_Add() command
  • Loading branch information
wxmerkt authored Feb 9, 2023
2 parents b44f438 + f87c42f commit bdf3a36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ ExternalProject_Add(pybind11_src
-DPYBIND11_INSTALL=ON
-DCMAKE_INSTALL_PREFIX=${PROJECT_BINARY_DIR}/install
-DCMAKE_INSTALL_INCLUDEDIR=${CATKIN_DEVEL_PREFIX}/include/${PROJECT_NAME}
# Workaround if DESTDIR is set
# See https://gitlab.kitware.com/cmake/cmake/-/issues/18165.
INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM} DESTDIR= install
)
# We need to copy the entire content of the cmake/pybind11 folder to the correct place but with a different structure:
ExternalProject_Add_Step(pybind11_src CopyToDevel
Expand Down

0 comments on commit bdf3a36

Please sign in to comment.