Skip to content

SDL2::SDL2-static not found #7

Open

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……

Activity

  1. afrizaloky commented on Apr 22, 2024

    @afrizaloky
    Contributor
  2. eschmidbauer commented on Apr 24, 2024

    @eschmidbauer
    Contributor

    im running into same issue.

  3. eschmidbauer commented on Apr 25, 2024

    @eschmidbauer
    Contributor

    running this seemed to fix it on my mac
    cmake -B cmake-build-release -DCMAKE_TOOLCHAIN_FILE=thirdparty/vcpkg/scripts/buildsystems/vcpkg.cmake

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions