Skip to content

Projects can't find assets when built using "Ninja Multi-config" CMake generator #563

@footballhead

Description

@footballhead

On both Linux and Windows:

$ cmake -B build -G "Ninja Multi-Config" .
$ cmake --build build --config Debug --target vk_sample_01_triangle
$ ./build/bin/Debug/vk_sample_01_triangle

...

*** PPX ASSERT ***
Message   : Could not determine asset path for "basic/shaders/spv/StaticVertexColors.vs.spv"
Condition : !assetPath.empty()
Function  : GetAssetPath
Location  : /usr/local/google/home/hitchens/git/bigwheels/src/ppx/base_application.cpp : 102

vk_sample_01_triangle: /usr/local/google/home/hitchens/git/bigwheels/src/ppx/base_application.cpp:102: std::filesystem::__cxx11::path ppx::BaseApplication::GetAssetPath(const std::filesystem::__cxx11::path&) const: Assertion `false' failed.

This works fine with the normal Ninja generator

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