Debian Codegraph @

debian/patches/install-library-multiarch-path

raw
1 Description: Install library into multiarch path
2
3 --- a/src/CMakeLists.txt
4 +++ b/src/CMakeLists.txt
5 @@ -16,10 +16,10 @@ ENDIF( OROCOS_PLUGIN )
6
7 # examples will be linked with orocos-bfl, so when building both static and shared, examples will link with shared
8 IF (LIBRARY_TYPE STREQUAL "shared")
9 + include(GNUInstallDirs)
10 ADD_LIBRARY(orocos-bfl SHARED $ENV{GLOBAL_LIBRARY_SRCS})
11 - SET_TARGET_PROPERTIES(orocos-bfl PROPERTIES OUTPUT_NAME orocos-bfl)
12 SET_TARGET_PROPERTIES(orocos-bfl PROPERTIES VERSION "${VERSION}" SOVERSION "${VERSION_MAJOR}.${VERSION_MINOR}")
13 - INSTALL_TARGETS( /lib orocos-bfl)
14 + INSTALL(TARGETS orocos-bfl LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT library)
15 ELSE (LIBRARY_TYPE STREQUAL "shared")
16
17 IF (LIBRARY_TYPE STREQUAL "static")
18 --- a/CMakeLists.txt
19 +++ b/CMakeLists.txt
20 @@ -113,7 +113,8 @@ ADD_SUBDIRECTORY( examples )
21 # .pc file
22 # --------
23 CONFIGURE_FILE( orocos-bfl.pc.in orocos-bfl.pc @ONLY)
24 -INSTALL_FILES( /lib/pkgconfig FILES orocos-bfl.pc)
25 +include(GNUInstallDirs)
26 +INSTALL_FILES( "/${CMAKE_INSTALL_LIBDIR}/pkgconfig" FILES orocos-bfl.pc)
27
28
29 # Building Doxygen documents