Skip to content

Commit

Permalink
Merge pull request #660 from borglab/fix/wrap-install
Browse files Browse the repository at this point in the history
CMake Install Destination
  • Loading branch information
varunagrawal authored Jan 7, 2021
2 parents 442cc6d + 6309917 commit 5a480c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wrap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@ install(FILES cmake/gtwrapConfig.cmake cmake/PybindWrap.cmake

# Install wrapping scripts as binaries to `CMAKE_INSTALL_PREFIX/bin` so they can
# be invoked for wrapping.
install(PROGRAMS scripts/pybind_wrap.py scripts/matlab_wrap.py TYPE BIN)
# We use DESTINATION (instead of TYPE) so we can support older CMake versions.
install(PROGRAMS scripts/pybind_wrap.py scripts/matlab_wrap.py
DESTINATION ${CMAKE_INSTALL_BINDIR})

# Install pybind11 directory to `CMAKE_INSTALL_PREFIX/lib/pybind11` This will
# allow the gtwrapConfig.cmake file to load it later.
install(DIRECTORY pybind11 TYPE LIB)
# We use DESTINATION (instead of TYPE) so we can support older CMake versions.
install(DIRECTORY pybind11
DESTINATION ${CMAKE_INSTALL_LIBDIR})

# ##############################################################################
# Install the Python package
Expand Down

0 comments on commit 5a480c8

Please sign in to comment.