You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
The text was updated successfully, but these errors were encountered:
cmake_minimum_required(VERSION 3.10)
project(apriltag_detect_zhouke_refine)
# Set C++ standard
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Find the yaml-cpp package
find_package(yaml-cpp REQUIRED)
# Add your executable (replace main.cpp with your actual source file(s))
add_executable(${PROJECT_NAME} main.cpp)
# Link yaml-cpp to your executable
target_link_libraries(${PROJECT_NAME} PRIVATE yaml-cpp)
# Optional: Include directories if needed (usually not necessary with modern yaml-cpp)
# target_include_directories(${PROJECT_NAME} PRIVATE ${YAML_CPP_INCLUDE_DIR})
when I build my project
The text was updated successfully, but these errors were encountered: