Skip to content

Commit

Permalink
properly check wayland version
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Jan 2, 2022
1 parent a93cae9 commit daa7008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/sdl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def _configure_cmake(self):
# FIXME: Otherwise 2.0.16 links with system wayland (from egl/system requirement)
cmake_extra_ldflags += ["-L{}".format(os.path.join(self.deps_cpp_info["wayland"].rootpath, it)) for it in self.deps_cpp_info["wayland"].libdirs]
self._cmake.definitions["WAYLAND_SHARED"] = self.options["wayland"].shared
self._cmake.definitions["WAYLAND_SCANNER_1_15_FOUND"] = 1 # FIXME: Check actual build-requires version
self._cmake.definitions["WAYLAND_SCANNER_1_15_FOUND"] = tools.Version(self.deps_cpp_info["wayland"].version) >= "1.15.0"

self._cmake.definitions["VIDEO_DIRECTFB"] = self.options.directfb
self._cmake.definitions["VIDEO_RPI"] = self.options.video_rpi
Expand Down Expand Up @@ -315,7 +315,7 @@ def _configure_cmake(self):
# FIXME: Otherwise 2.0.16 links with system wayland (from egl/system requirement)
cmake_extra_ldflags += ["-L{}".format(os.path.join(self.deps_cpp_info["wayland"].rootpath, it)) for it in self.deps_cpp_info["wayland"].libdirs]
self._cmake.definitions["SDL_WAYLAND_SHARED"] = self.options["wayland"].shared
self._cmake.definitions["WAYLAND_SCANNER_1_15_FOUND"] = 1 # FIXME: Check actual build-requires version
self._cmake.definitions["WAYLAND_SCANNER_1_15_FOUND"] = tools.Version(self.deps_cpp_info["wayland"].version) >= "1.15.0"

self._cmake.definitions["SDL_DIRECTFB"] = self.options.directfb
self._cmake.definitions["SDL_RPI"] = self.options.video_rpi
Expand Down

0 comments on commit daa7008

Please sign in to comment.