-
What is the streamlined process for installing cpr?
The package cpr provides CMake targets:
find_package(cpr CONFIG REQUIRED)
target_link_libraries(main PRIVATE cpr::cpr)
What am I missing? # CMakeList.txt : CMake project for CMakeProject1, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.8)
project ("CMakeProject1")
# Add source to this project's executable.
add_executable (CMakeProject1 "CMakeProject1.cpp" "CMakeProject1.h")
find_package(cpr CONFIG REQUIRED)
target_link_libraries(CMakeProject1 PRIVATE cpr::cpr) |
Beta Was this translation helpful? Give feedback.
Answered by
elibroftw
Dec 12, 2021
Replies: 1 comment 3 replies
-
I deleted the contents of the build folder and it works now. Will uninstall cpr and start from scratch again. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
elibroftw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I deleted the contents of the build folder and it works now. Will uninstall cpr and start from scratch again.