httpclient-cpp
httpclient-cpp copied to clipboard
failed to build on ubuntu 18.04 with cmake
xtark@xtark-vmpc:~/Documents$ git clone https://github.com/embeddedmz/httpclient-cpp.git 正克隆到 'httpclient-cpp'... remote: Enumerating objects: 176, done. remote: Counting objects: 100% (45/45), done. remote: Compressing objects: 100% (31/31), done. remote: Total 176 (delta 23), reused 32 (delta 13), pack-reused 131 接收对象中: 100% (176/176), 253.54 KiB | 295.00 KiB/s, 完成. 处理 delta 中: 100% (62/62), 完成. xtark@xtark-vmpc:~/Documents$ cd httpclient-cpp/ xtark@xtark-vmpc:~/Documents/httpclient-cpp$ ls CMakeLists.txt HTTP LICENSE README.md TestHTTP VERSION xtark@xtark-vmpc:~/Documents/httpclient-cpp$ mkdir build;cd build xtark@xtark-vmpc:~/Documents/httpclient-cpp/build$ cmake .. -- The CXX compiler identification is GNU 7.5.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.58.0") CMake Error at HTTP/CMakeLists.txt:13 (install): install TARGETS given no ARCHIVE DESTINATION for static library target "httpclient".
-- Configuring incomplete, errors occurred! See also "/home/xtark/Documents/httpclient-cpp/build/CMakeFiles/CMakeOutput.log".
You can comment that line (13 of HTTP/CMakeLists.txt) with a '#' or simply remove the whole line until I fix that issue. That line was added by a contributor to enable CI on github.
By the way, on Ubuntu 20.04 and CMake 3.16.3 (the one that you install with apt) there's no issue.