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

Workaround for a bug affecting CMake < 0.30.3 and CPM >= 0.40.1 #21

Merged
merged 4 commits into from
Dec 2, 2024

Conversation

hikinggrass
Copy link
Contributor

@hikinggrass hikinggrass commented Nov 27, 2024

There seems to be a bug in CMake versions < 0.30.3 that gets triggered by CPM >= 0.40.1 ( see cpm-cmake/CPM.cmake#603 ). This PR ensures that the new code path is only used for CMake versions that have the fix

Signed-off-by: Kai-Uwe Hermann <[email protected]>
Signed-off-by: Kai-Uwe Hermann <[email protected]>
When a ${PACKAGE}_SOURCE_DIR is set before project() is called
projects where the name and project-dir-name differ,
like "gtest" for "googletest" in everest-core seem to have the wrong
${PACKAGE}_SOURCE_DIR set after the project() call

Signed-off-by: Kai-Uwe Hermann <[email protected]>
@hikinggrass hikinggrass merged commit c1ec735 into main Dec 2, 2024
2 checks passed
@hikinggrass hikinggrass deleted the bugfix/cpm-hotfix branch December 2, 2024 10:43
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

Successfully merging this pull request may close these issues.

2 participants