Skip to content

CMake error on OSX: "STREQUAL" "Debug" Unknown arguments specified #1

@tfoldi

Description

@tfoldi

When building on Mac, there is a quotation issue that impacts the Makefile generation.

See related issue at: https://youtrack.jetbrains.com/issue/CPP-253/STREQUAL-Debug-in-CMake-is-not-working

❯ cmake .
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:49 (if):
  if given arguments:

    "STREQUAL" "Debug"

  Unknown arguments specified


-- Configuring incomplete, errors occurred!
See also "/Users/tfoldi/Developer/mobility/clx000-qt5-plugin/CMakeFiles/CMakeOutput.log".
See also "/Users/tfoldi/Developer/mobility/clx000-qt5-plugin/CMakeFiles/CMakeError.log".```

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