You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I encountered a problem while using the CMake FetchContent to set up SystemC as a dependency library of my project.
Once a clean build finishes, the SystemCLanguageTargets.cmake is put in an incorrect location (i.e., build/) rather than the folder expected by build/_deps/systemclanguage-build/SystemCLanguageConfig.cmake (i.e., build/_deps/systemclanguage-build/). I expect the SystemCLanguageTargets.cmake file to be placed in the same folder as SystemCLanguageConfig.cmake.
Note that a clean build can finish without any errors. However, starting from the second time CMake configures the project, the following error occurs:
CMake Error at build/_deps/systemclanguage-build/SystemCLanguageConfig.cmake:44 (include):
include could not find requested file:
/home/user/projects/systemc-test/build/_deps/systemclanguage-build/SystemCLanguageTargets.cmake
Call Stack (most recent call first):
/usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.25/Modules/FetchContent.cmake:1951 (find_package)
CMakeLists.txt:14 (fetchcontent_makeavailable)
Steps to Reproduce
Here is a simple example for anyone to reproduce the issue.
Hi, I encountered a problem while using the CMake
FetchContent
to set up SystemC as a dependency library of my project.Once a clean build finishes, the
SystemCLanguageTargets.cmake
is put in an incorrect location (i.e.,build/
) rather than the folder expected bybuild/_deps/systemclanguage-build/SystemCLanguageConfig.cmake
(i.e.,build/_deps/systemclanguage-build/
). I expect theSystemCLanguageTargets.cmake
file to be placed in the same folder asSystemCLanguageConfig.cmake
.Note that a clean build can finish without any errors. However, starting from the second time CMake configures the project, the following error occurs:
Steps to Reproduce
Here is a simple example for anyone to reproduce the issue.
CMakeLists.txt
main.cc
cd build cmake ..
Development Environment
Please let me know if more details are needed, or if there's a known workaround.
The text was updated successfully, but these errors were encountered: