libcpr / cpr

C++ Requests: Curl for People, a spiritual port of Python Requests.
https://docs.libcpr.org/
Other
6.49k stars 924 forks source link

file INSTALL cannot find .../cpr/build/cpr/CMakeFiles/CMakeRelink.dir/libcpr.so.1.11.0 #908

Closed ronytigo closed 1 year ago

ronytigo commented 1 year ago

Description

when running sudo cmake --install . from the build directory I get:

CMake Error at cpr/cmake_install.cmake:46 (file):
  file INSTALL cannot find
  "/home/user/myproject/cpr/build/cpr/CMakeFiles/CMakeRelink.dir/libcpr.so.1.11.0":
  No such file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:47 (include)

Example/How to Reproduce

run sudo cmake --install . from the build directory

Possible Fix

No response

Where did you get it from?

GitHub (branch e.g. master)

Additional Context/Your Environment

Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy

ronytigo commented 1 year ago

the cpr/build/lib directory is empty

COM8 commented 1 year ago

@ronytigo thanks for reporting this. I will have a look at it on the weekend.

ronytigo commented 1 year ago

OK, adding sudo to the other commands and not just the last one, solved it.