Closed maichmueller closed 1 month ago
The PR #531 would be the quick solution I suggested. With this fix, I can configure the project with CPM without problems.
Happy to hear your thoughts on this!
Amazing, thanks for the issue and quick debugging with a solution. We love issues like this. If the PR passes the CI then we should be able to merge
I tried pulling in this project via CPM (a FetchContent CMake wrapper) like so
but this leads to an error:
due to using
CMAKE_MODULE_PATH
inconfigure_package_config_file
as suchin
src/CMakeLists.txt
. This leads to expanding theCMAKE_MODULE_PATH
(which is a list) as multiple args blocking input AND output of the function, renderingale-config.cmake
to no longer be parsed as the output arg, but as a keyword arg (and consequently the error). Without knowing what the intentions were, this usage seems incorrect.This could be fixed by replacing
${CMAKE_MODULE_PATH}
with${CMAKE_CURRENT_SOURCE_DIR}/../cmake
in the 1st argument.