Closed gri6507 closed 3 years ago
This looks to be due to an error on my part because /usr/lib/x86_64-linux-gnu/libcpprest.so
was a symlink to a non-existent file. Once I properly updated the symlink, CMake works fine.
I wish CMake was clearer about errors like this :-(
I have Casablanca (cpprest SDK) built locally and installed in
/usr/lib/x86_64-linux-gnu/libcpprest.so
. When I runthis correctly finds Casablanca in the path shown above. However, when I then run
cmake --build .
I get the following error:Why did CMake create a target for
/usr/lib/x86_64-linux-gnu/libcpprest.so
? What is the right way to build? Even though https://github.com/Azure/azure-storage-cpp#getting-started-on-linux has some instructions for specifyingCASABLANCA_DIR
to point to a custom directory, that still assumes a structure within that directory which I do not have.For sake of completeness, this is on Ubuntu 18.04 system and I actually have
/usr/lib/x86_64-linux-gnu/cmake/cpprestsdk/
with*.cmake
files from my cpprest build.