jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.77k forks source link

Cannot specify link libraries for target "yaml-cpp" #1277

Open ahzahzahz opened 2 months ago

ahzahzahz commented 2 months ago

when I build my project

            CMake Error at /usr/local/lib/cmake/yaml-cpp/yaml-cpp-config.cmake:49 (target_link_libraries):
              Cannot specify link libraries for target "yaml-cpp" which is not built by
              this project.
            Call Stack (most recent call first):
              CMakeLists.txt:19 (find_package)

            -- Configuring incomplete, errors occurred!
            See also "/home/yumin/apriltag_detect_zhouke_refine/build/CMakeFiles/CMakeOutput.log"