Skip to content

CMake broken: "target pattern contains no `%'" #745

@asmaloney

Description

@asmaloney

The recent major changes to CMake broke my build when using yaml-cpp as a submodule. I removed my shadow build directory and ran CMake from scratch.

No errors when running CMake, but when building I get this:

extern/yaml-cpp/CMakeFiles/yaml-cpp.dir/build.make:458: *** target pattern contains no `%'. Stop.

The line it's pointing at is this:

extern/yaml-cpp/libyaml-cpp$<$<AND:$<NOT:$BOOL:OFF>,$CONFIG:Debug>:d>.a: extern/yaml-cpp/CMakeFiles/yaml-cpp.dir/src/binary.cpp.o

Are there changes I need to make to my own cmake files to use it now?

macOS 10.14.6
Apple clang version 11.0.0 (clang-1100.0.33.8)
cmake version 3.15.3
CMAKE_BUILD_TYPE: debug

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