#Problems w/Cmake

7 messages · Page 1 of 1 (latest)

light zealotBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

past socket
#
Error: "C:\Program Files\JetBrains\CLion 2023.1.5\bin\cmake\win\x64\bin\cmake.exe" --build C:\Users\danyf\CLionProjects\Elisa\cmake-build-debug --target Elisa -j 10
[0/1] Re-running CMake...
CMake Error at CMakeLists.txt:6 (find_package):
  By not providing "Finddpp.cmake.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "dpp.cmake", but CMake did not find one.

  Could not find a package configuration file provided by "dpp.cmake" with
  any of the following names:

    dpp.cmakeConfig.cmake
    dpp.cmake-config.cmake

  Add the installation prefix of "dpp.cmake" to CMAKE_PREFIX_PATH or set
  "dpp.cmake_DIR" to a directory containing one of the above files.  If
  "dpp.cmake" provides a separate development package or SDK, be sure it has
  been installed.


ninja: error: rebuilding 'build.ninja': subcommand failed
-- Configuring incomplete, errors occurred!
See also "C:/Users/danyf/CLionProjects/Elisa/cmake-build-debug/CMakeFiles/CMakeOutput.log".
FAILED: build.ninja```
pliant delta
#

Just pass the name of the library, not the file with its extension:

- find_package(dpp.cmake REQUIRED)
+ find_package(dpp REQUIRED)

You'll also need to use target_link_libraries() after add_executable():

target_link_libraries(Elisa PRIVATE dpp::dpp)
past socket
#

thx

light zealotBOT
#

@past socket

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

past socket
#

!solved