Skip to content

CI: Use cache_variables for CMake options in conanfile.py#1248

Merged
alxvth merged 1 commit into
masterfrom
feature/UseConanCacheVariable
May 28, 2026
Merged

CI: Use cache_variables for CMake options in conanfile.py#1248
alxvth merged 1 commit into
masterfrom
feature/UseConanCacheVariable

Conversation

@alxvth
Copy link
Copy Markdown
Contributor

@alxvth alxvth commented May 28, 2026

tc.variables[...] sets a normal CMake variable and tc.cache_variable[...] should be used for CMake options, see the conan docs.

In some cases this can lead to options not being set as expected, as I've recently stumbled over in biovault/HDILib#68.

@alxvth alxvth changed the title Use cache_variables for CMake options in conanfile.py CI: Use cache_variables for CMake options in conanfile.py May 28, 2026
@alxvth alxvth merged commit ecf14ad into master May 28, 2026
8 checks passed
@alxvth alxvth deleted the feature/UseConanCacheVariable branch May 28, 2026 09:29
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.

1 participant