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

OPTIONS in CPMAddPackage does not like multiple whitespace #635

Open
tksuoran opened this issue Jan 15, 2025 · 0 comments
Open

OPTIONS in CPMAddPackage does not like multiple whitespace #635

tksuoran opened this issue Jan 15, 2025 · 0 comments

Comments

@tksuoran
Copy link

This does not work:

CPMAddPackage(
    NAME              geogram
    GIT_TAG           cmake-fetchcontent
    GITHUB_REPOSITORY tksuoran/geogram
    OPTIONS
        "GEOGRAM_SUB_BUILD            ON"
        "GEOGRAM_WITH_GRAPHICS        OFF"
        "GEOGRAM_WITH_LEGACY_NUMERICS OFF"
        "GEOGRAM_WITH_HLBFGS          ON"
        "GEOGRAM_WITH_TETGEN          ON"
        "GEOGRAM_WITH_TRIANGLE        ON"
        "GEOGRAM_WITH_LUA             OFF"
        "GEOGRAM_LIB_ONLY             ON"
        "GEOGRAM_WITH_FPG             ON"
        "GEOGRAM_USE_SYSTEM_GLFW3     OFF"
        "GEOGRAM_WITH_GARGANTUA       OFF"
        "GEOGRAM_WITH_TBB             OFF"
)

Value of GEOGRAM_WITH_GRAPHICS will end up with OFF and that is not recognized as OFF.

This works:

CPMAddPackage(
    NAME              geogram
    GIT_TAG           cmake-fetchcontent
    GITHUB_REPOSITORY tksuoran/geogram
    OPTIONS
        "GEOGRAM_SUB_BUILD ON"
        "GEOGRAM_WITH_GRAPHICS OFF"
        "GEOGRAM_WITH_LEGACY_NUMERICS OFF"
        "GEOGRAM_WITH_HLBFGS ON"
        "GEOGRAM_WITH_TETGEN ON"
        "GEOGRAM_WITH_TRIANGLE ON"
        "GEOGRAM_WITH_LUA OFF"
        "GEOGRAM_LIB_ONLY ON"
        "GEOGRAM_WITH_FPG ON"
        "GEOGRAM_USE_SYSTEM_GLFW3 OFF"
        "GEOGRAM_WITH_GARGANTUA OFF"
        "GEOGRAM_WITH_TBB OFF"
)

Would it be possible to allow multiple whitespaces here?

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

No branches or pull requests

1 participant