FS#52066 - [yaml-cpp] CMake package config points to invalid shared objects
Attached to Project:
Community Packages
Opened by Sergiu Deitsch (sd) - Wednesday, 07 December 2016, 01:11 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 10 April 2017, 22:20 GMT
Opened by Sergiu Deitsch (sd) - Wednesday, 07 December 2016, 01:11 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Monday, 10 April 2017, 22:20 GMT
|
Details
Description:
Including and linking to yaml-cpp using the `yaml-cpp-config.cmake` causes a compilation error: make[2]: *** No rule to make target '/build/yaml-cpp/src/yaml-cpp-release-0.5.3/libyaml-cpp.so.0.5.3', needed by 'foo'. Stop. Cause: The PKGBUILD overwrites yaml-cpp*.cmake files installed using make DESTDIR=$pkgdir install in the subsequent three lines. Steps to reproduce: Paste into CMakeLists.txt: ---8<--- cmake_minimum_required (VERSION 2.8) project (mytest) find_package (yaml-cpp REQUIRED) add_executable (mytest main.cpp) target_link_libraries (mytest yaml-cpp) ---8<--- Generate makefiles using CMake and compile. |
This task depends upon