最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c++ - How is case sensitivity handled when using cmake-conan Linux - Stack Overflow

programmeradmin1浏览0评论

I have a C++ project which I built and run successfully on Windows using CMake, conan, and cmake-conan integration. When I try to build the same project on Linux (OracleLinux 9), I get the following error:

[cmake] CMake Error at cmake-conan/conan_provider.cmake:632 (find_package):
[cmake]   By not providing "Findboost.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "boost", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "boost" with any of
[cmake]   the following names:
[cmake] 
[cmake]     boostConfig.cmake
[cmake]     boost-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "boost" to CMAKE_PREFIX_PATH or set
[cmake]   "boost_DIR" to a directory containing one of the above files.  If "boost"
[cmake]   provides a separate development package or SDK, be sure it has been
[cmake]   installed.
[cmake] Call Stack (most recent call first):
[cmake]   CMakeLists.txt:13 (find_package)
[cmake] 
[cmake] 
[cmake] CMake Error at CMakeLists.txt:13 (find_package):
[cmake]   By not providing "Findboost.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "boost", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "boost" with any of
[cmake]   the following names:
[cmake] 
[cmake]     boostConfig.cmake
[cmake]     boost-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "boost" to CMAKE_PREFIX_PATH or set
[cmake]   "boost_DIR" to a directory containing one of the above files.  If "boost"
[cmake]   provides a separate development package or SDK, be sure it has been
[cmake]   installed.
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: /usr/bin/cmake "-DCMAKE_INSTALL_PREFIX=/home/yawnyarko/Projects/dt2c2xcap/out/install/GCC 11.5.0 x86_64-redhat-linux" -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=./cmake-conan/conan_provider.cmake -S/home/yawnyarko/Projects/dt2c2xcap "-B/home/yawnyarko/Projects/dt2c2xcap/out/build/GCC 11.5.0 x86_64-redhat-linux" exited with code: 1

Meanwhile the file not being found exists in the build folder as: out/build/GCC 11.5.0 x86_64-redhat-linux/conan/build/Debug/generators/BoostConfig.cmake

It's just the first letter being in a different case. Other packages are configured successfully. How do I get this fixed?

发布评论

评论列表(0)

  1. 暂无评论