mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-07 20:31:04 +03:00
Meta: Silence warnings from optional CMake packages
These can be quite verbose on the command line if the packages aren't found. As they do not break the build, let's not spam warnings. The OpenGL package is also now skipped on macOS, where there's no point in looking for the package anyways.
This commit is contained in:
parent
9090290d11
commit
82398e5724
Notes:
sideshowbarker
2024-07-17 01:10:58 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/82398e5724 Pull-request: https://github.com/SerenityOS/serenity/pull/22075 Reviewed-by: https://github.com/nico ✅
@ -4,16 +4,16 @@ if (NOT ENABLE_ACCELERATED_GRAPHICS OR EMSCRIPTEN)
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_package(OpenGL COMPONENTS OpenGL EGL)
|
||||
|
||||
if (OPENGL_FOUND)
|
||||
set(HAS_ACCELERATED_GRAPHICS ON CACHE BOOL "" FORCE)
|
||||
set(ACCEL_GFX_LIBS OpenGL::OpenGL OpenGL::EGL CACHE STRING "" FORCE)
|
||||
else()
|
||||
set(HAS_ACCELERATED_GRAPHICS OFF CACHE BOOL "" FORCE)
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
set(HAS_ACCELERATED_GRAPHICS ON CACHE BOOL "" FORCE)
|
||||
set(ACCEL_GFX_LIBS "-framework OpenGL" CACHE STRING "" FORCE)
|
||||
else()
|
||||
find_package(OpenGL QUIET COMPONENTS OpenGL EGL)
|
||||
|
||||
if (OPENGL_FOUND)
|
||||
set(HAS_ACCELERATED_GRAPHICS ON CACHE BOOL "" FORCE)
|
||||
set(ACCEL_GFX_LIBS OpenGL::OpenGL OpenGL::EGL CACHE STRING "" FORCE)
|
||||
else()
|
||||
set(HAS_ACCELERATED_GRAPHICS OFF CACHE BOOL "" FORCE)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -549,8 +549,8 @@ if (BUILD_LAGOM)
|
||||
add_serenity_subdirectory(Meta/Lagom/Contrib/MacPDF)
|
||||
endif()
|
||||
|
||||
find_package(SDL2)
|
||||
if(SDL2_FOUND)
|
||||
find_package(SDL2 QUIET)
|
||||
if (SDL2_FOUND)
|
||||
add_serenity_subdirectory(Meta/Lagom/Contrib/VideoPlayerSDL)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user