Skip to content

[cmake] cmakeBuild() does not work when passed a variable with a hyphen #242

Open
@paricbat

Description

@paricbat

The assert in cmakeBuild() allows for variable names with a hyphen, and so does cmake.
But variables in bash cannot contain a hyphen, however cmakeBuild() uses bash variables to generate the final arguments to pass to cmake.
This results in an error like this:

/home/.../bin/bash: line 7: cmake_type_SPIRV-Headers_SOURCE_DIR: invalid variable name

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions