jpbarrette / curlpp

C++ wrapper around libcURL
http://www.curlpp.org
1.68k stars 360 forks source link

[cmake] A required package was not found #157

Closed XMNXofficial closed 1 year ago

XMNXofficial commented 1 year ago

curlpp can be built,but example can't be build. the command pkg_check_modules(CURLPP REQUIRED curlpp) can't find the pkg

[cmake] Not searching for unused variables given on the command line.
[cmake] -- Checking for module 'curlpp'
[cmake] --   
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPkgConfig.cmake:607 (message):
[cmake]   A required package was not found
[cmake] Call Stack (most recent call first):
[cmake]   C:/Program Files/CMake/share/cmake-3.26/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
[cmake]   CMakeLists.txt:4 (pkg_check_modules)
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\Windows\w64devkit\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\Windows\w64devkit\bin\g++.exe -SC:/curlpp-0.8.1/examples -Bc:/curlpp-0.8.1/examples/build -G "Unix Makefiles" exited with code: 1