Install libs and cmake files to the Debian location
authorPaul Novotny <paul@paulnovo.us>
Fri, 18 Jan 2019 20:49:45 +0000 (20:49 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Fri, 18 Jan 2019 20:49:45 +0000 (20:49 +0000)
Forwarded: not-needed
Last-Update: 2015-11-29

Instead of moving the libs to the DEB_HOST_MULTIARCH lib directory during
packaging, have cmake install the libs directly. This is needed so the CMake
development files point to the correct location for the libs. Also, install
yaml-cpp-config.cmake, yaml-cpp-config-version.cmake, and
yaml-cpp-targets.cmake.

Gbp-Pq: Name install-cmake-dev-files.patch

CMakeLists.txt

index d2d8810288043c2e9cc4cfc036961de017c54eb8..ae2578e4805d3f52bced0064c09abdaee2c387c9 100644 (file)
@@ -262,7 +262,10 @@ endif()
 set(INCLUDE_INSTALL_ROOT_DIR include)
 
 set(INCLUDE_INSTALL_DIR ${INCLUDE_INSTALL_ROOT_DIR}/yaml-cpp)
-set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}")
+SET(LIB_INSTALL_DIR "${_library_dir}${LIB_SUFFIX}" CACHE
+    "Directory relative to CMAKE_INSTALL_PREFIX in which to install libraries"
+    STRING)
+MARK_AS_ADVANCED(LIB_INSTALL_DIR)
 
 set(_INSTALL_DESTINATIONS
        RUNTIME DESTINATION bin