Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while executing the cmake command #119

Open
negishubham opened this issue Mar 20, 2025 · 1 comment
Open

error while executing the cmake command #119

negishubham opened this issue Mar 20, 2025 · 1 comment

Comments

@negishubham
Copy link

Hi,

When I am executing the cmake command: "cmake -S . -B build". I am getting the error shown below. So the error is on " FetchContent_MakeAvailable(DRAMUtils)" in the CMakeLists.txt file. Is there any specific cmake version that I need to use? I am currently using cmake-3.22 version

Error:

CMake Error at /usr/share/cmake-3.22/Modules/ExternalProject.cmake:2806 (message):
At least one entry of URL is a path (invalid in a list)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/ExternalProject.cmake:3716 (_ep_add_download_command)
CMakeLists.txt:15 (ExternalProject_Add)

-- Configuring incomplete, errors occurred!
See also "/home/DRAMPower/buildgvim/_deps/dramutils-subbuild/CMakeFiles/CMakeOutput.log".

CMake Error at /usr/share/cmake-3.22/Modules/FetchContent.cmake:1075 (message):
CMake step for dramutils failed: 1
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate)
/usr/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language)
/usr/share/cmake-3.22/Modules/FetchContent.cmake:1259 (FetchContent_Populate)
CMakeLists.txt:131 (FetchContent_MakeAvailable)

@negishubham
Copy link
Author

I was able to solve above error by updating the cmake version to 3.30. But now I am getting a new error, maybe related to recent updates.

CMake Error at build/_deps/dramutils-src/CMakeLists.txt:113 (find_package):
By not providing "Findnlohmann_json.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"nlohmann_json", but CMake did not find one.

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

nlohmann_jsonConfig.cmake
nlohmann_json-config.cmake

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant