Skip to content

SDL2::SDL2-static not found #7

@ljxqxq

Description

@ljxqxq

I use Clion IDE and msys64\mingw64 to cmake this,but CMake Error has happened:

`CMake Error at CMakeLists.txt:16 (target_link_libraries):
Target "sdl_version" links to:

SDL2::SDL2-static

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

CMake Error at CMakeLists.txt:25 (target_link_libraries):
Target "stream_local" links to:

SDL2::SDL2-static

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.

[Finished]`

what can i do?pls help……

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