install gtsam_unstable correctly on APPLE devices

release/4.3a0
Varun Agrawal 2019-12-20 15:23:40 -05:00
parent bd51af1b3e
commit f2376a644e
2 changed files with 7 additions and 1 deletions

View File

@ -98,6 +98,12 @@ if(WIN32) # Add 'lib' prefix to static library to avoid filename collision with
endif()
endif()
if (APPLE AND BUILD_SHARED_LIBS)
set_target_properties(gtsam_unstable PROPERTIES
INSTALL_NAME_DIR
"${CMAKE_INSTALL_PREFIX}/lib")
endif()
install(
TARGETS gtsam_unstable
EXPORT GTSAM-exports