Skip to content

pybind11Tools.cmake - unknown argument specified #4325

Closed

Description

@gitartpiano

The symptom:

CMake Error at vendor/pybind11/tools/pybind11Tools.cmake:217 (if):
  if given arguments:
    "NOT" "MSVC" "AND" "NOT" "TEST" "MATCHES" "DEBUG|RELWITHDEBINFO"
  Unknown arguments specified

The fix I have found:
Was:

if(NOT MSVC AND NOT ${uppercase_CMAKE_BUILD_TYPE} MATCHES DEBUG|RELWITHDEBINFO)

Changed to:

if(NOT MSVC AND NOT "${uppercase_CMAKE_BUILD_TYPE}" MATCHES DEBUG|RELWITHDEBINFO)

At:

if(NOT MSVC AND NOT ${uppercase_CMAKE_BUILD_TYPE} MATCHES DEBUG|RELWITHDEBINFO)

Please consider applying this fix, or suggesting a better solution to above error.

Activity

  1. gitartpiano commented on Nov 10, 2022

    @gitartpiano
    ContributorAuthor

    The version I have found the problem in: v2.10.1

  2. Skylion007 commented on Nov 12, 2022

    @Skylion007
    Collaborator

    Closed by #4327

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions