Skip to content

Conversation

@bfierz
Copy link
Contributor

@bfierz bfierz commented Mar 18, 2025

This issue occurs when using CMake 3.21+. The effect is that after setting the cache variables in the first lines of the main CMakeLists.txt they are not accessible anymore to the rest of the project and yield empty strings.
The first configure works though, only subsequent configures fail.
The bug could be alternatively fixed by setting the cmake_policy CMP0126 to old, however, I decided differently as it is deprecated behaviour.
Observed and fixed on CMake 3.31.5 by including memory as a subproject in my project.

@foonathan foonathan merged commit 0bc8c81 into foonathan:main May 2, 2025
9 checks passed
@foonathan
Copy link
Owner

Thank you!

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