diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-04-21 03:00:41 -0400 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-04-21 03:00:41 -0400 |
commit | 956b2bd332588f078229efc15d5daa5948fad89b (patch) | |
tree | d3302518e3bedf2ee9f2f11c9d39d1199b5d7682 | |
parent | ea78f9a2ef89918e758c3a52eea5d581a944b42f (diff) |
cmake: Suppress SDL2 not found warning
If SDL2 is not found, the error is handled by falling back to externals.
No need spill the full warning at the find_package if it's going to be
handled later, so add QUIET to it.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2cddf2ad97..7afa972f56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -274,7 +274,7 @@ if (ENABLE_SDL2) target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARY}") target_include_directories(SDL2 INTERFACE "${SDL2_INCLUDE_DIR}") else() - find_package(SDL2 2.0.14) + find_package(SDL2 2.0.14 QUIET) if (SDL2_FOUND) # Some installations don't set SDL2_LIBRARIES |