Skip to content

[ogre] install ogre after sdl2 make error #12054

@polelf

Description

@polelf

Host Environment

  • OS: [e.g. Windows/Linux etc...]
  • Compiler: revision

because ogre src CMake/Dependencies.cmake:295

find_package(SDL2)

after installed debug/bin/OgreBites_d.dll will wrong link to sdl2.dll

modify CMake/Dependencies.cmake:295 to

find_package(SDL2 CONFIG REQUIRED)
set(SDL2_LIBRARY ${SDL2_LIBRARY} SDL2::SDL2 SDL2::SDL2main)
and remove CMake/Packages/FindSDL2.cmake
will fix it

PS: can you update ogre to the lastest version 1.12.7

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already supportcategory:port-updateThe issue is with a library, which is requesting update new revision

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions