cmkr icon indicating copy to clipboard operation
cmkr copied to clipboard

[options] should also be conditions

Open mrexodia opened this issue 3 years ago • 0 comments

Currently you need to do extra work:

[options]
PROJECT_BUILD_TESTS = false

[conditions]
tests = "PROJECT_BUILD_TESTS"

[target.tests]
condition = "tests"
sources = ["src/tests.cpp"]

This could be:

[options]
PROJECT_BUILD_TESTS = false

[target.tests]
condition = "PROJECT_BUILD_TESTS"
sources = ["src/tests.cpp"]

mrexodia avatar Dec 24 '21 22:12 mrexodia