mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
using CMAKE_INSTALL_DATAROOTDIR variable instead of explicitly setting "share"
This commit is contained in:
@@ -80,9 +80,6 @@ IF(APPLE)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
####### Build libraries as shared or static #######
|
####### Build libraries as shared or static #######
|
||||||
# It is a bit messed up on Windows between STATIC and SHARED, if we don't want
|
|
||||||
# to add UtiLite_DEFINITIONS in FindUtiLite.cmake... to know from 3rd party application if it needs to
|
|
||||||
# link dynamically [UTILITE_EXP __declspec( dllimport )] or statically (UTILITE_EXP "nothing").
|
|
||||||
OPTION( BUILD_SHARED_LIBS "Set to OFF to build static libraries" ON )
|
OPTION( BUILD_SHARED_LIBS "Set to OFF to build static libraries" ON )
|
||||||
|
|
||||||
|
|
||||||
@@ -214,7 +211,7 @@ install(FILES
|
|||||||
####
|
####
|
||||||
|
|
||||||
### Install package.xml for catkin
|
### Install package.xml for catkin
|
||||||
install(FILES package.xml DESTINATION "share/${PROJECT_PREFIX}")
|
install(FILES package.xml DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_PREFIX}")
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# CPACK (Packaging)
|
# CPACK (Packaging)
|
||||||
|
|||||||
Reference in New Issue
Block a user