Skip to content

Commit

Permalink
sdl2 version 2.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paulocoutinhox committed Sep 1, 2022
1 parent d2be641 commit 417f598
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/sdl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,11 @@ def package_info(self):

postfix = "d" if self.settings.os != "Android" and self.settings.build_type == "Debug" else ""

# SDL2
lib_postfix = postfix
if self.version >= "2.0.24" and is_msvc(self) and not self.options.shared:
postfix = "-static" + postfix
lib_postfix = "-static" + postfix

# SDL2
self.cpp_info.components["libsdl2"].set_property("cmake_target_name", "SDL2::SDL2")
if not self.options.shared:
self.cpp_info.components["libsdl2"].set_property("cmake_target_aliases", ["SDL2::SDL2-static"])
Expand All @@ -405,7 +406,7 @@ def package_info(self):
self.cpp_info.components["libsdl2"].names["cmake_find_package_multi"] = sdl2_cmake_target

self.cpp_info.components["libsdl2"].includedirs.append(os.path.join("include", "SDL2"))
self.cpp_info.components["libsdl2"].libs = ["SDL2" + postfix]
self.cpp_info.components["libsdl2"].libs = ["SDL2" + lib_postfix]
if self.options.get_safe("iconv", False):
self.cpp_info.components["libsdl2"].requires.append("libiconv::libiconv")
if self.settings.os == "Linux":
Expand Down

0 comments on commit 417f598

Please sign in to comment.