Skip to content

Conversation

mrexodia
Copy link
Contributor

@mrexodia mrexodia commented Jul 6, 2024

[project]
name = "MYPROJECT"

[options]
MYPROJECT_TESTS = "root"

[target.tests]
condition = "MYPROJECT_TESTS"

This would generate a # NOTE: unnamed condition even though MYPROJECT_TESTS is an option defined in the project. Additionally making a typo like MYPROJECT_TSETS would silently emit if(MYPROJECT_TSETS) # NOTE: unnamed condition instead of raising an error.

This issue was introduced because raw conditions are now supported, for instance:

[target.foo]
sources = ["foo.cpp"]
"WIN32 OR APPLE".sources = ["bar.cpp"]

@mrexodia mrexodia merged commit 9f2cfe4 into main Jul 6, 2024
@mrexodia mrexodia deleted the improved-conditions branch July 6, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant