btop: add cmake version restriction (#42835)

Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
YI Zeping 2024-02-27 17:08:22 +08:00 committed by GitHub
parent fe4a4ddcf9
commit 2ea8a2e6ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,8 @@ class Btop(MakefilePackage, CMakePackage):
variant("gpu", default=False, description="Enable GPU support", when="build_system=cmake")
depends_on("cmake@3.24:", type="build", when="@1.3.0: build_system=cmake")
# Fix linking GPU support, by adding an explicit "target_link_libraries" to ${CMAKE_DL_LIBS}
patch("link-dl.patch", when="+gpu")