Skip to content

Using special characters in the package name makes it hard to use with CMake #482

@Dharmesh946

Description

@Dharmesh946

Bug category

  • [x ] bug - compilation error
  • bug - compilation warning
  • bug - runtime error
  • bug - runtime warning
  • bug - logic error

Describe the bug
For installation in custom directories, Matplot++_DIR or Matplot++_ROOT environment variable must be defined, pointing to the Matplot++ cmake configuration files location. But, at least on linux, special characters over than _ are not allowed in shell variable names.

Steps to Reproduce

in .bashrc (for instance)

export Matplot++_ROOT="path"

Output

bash: export : "Matplot++_ROOT="path"" identifier is not valid

Platform

  • [x ] cross-platform issue - linux
  • [?] cross-platform issue - windows
  • [?] cross-platform issue - macos

Additional context
Other processing task can be made difficult as when using the package name as string, it is sometime needed to add logic in order to escape the special characters.
It may be fixable through Matplot++ creating also an alias Matplotpp target and configuration files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions