commit | 5e1f44e85110c37abe2eb2c38578656b20a24362 | [log] [tgz] |
---|---|---|
author | Scott Todd <scotttodd@google.com> | Mon Mar 30 16:21:44 2020 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Mar 30 16:22:56 2020 -0700 |
tree | bbe0b6ebb7f84dd76e6a90f721a2b415ad60c6af | |
parent | 8562ee11c89af18cce7dabd881058c6354a62351 [diff] [blame] |
Quiet SDL2 CMake configure logs. This only takes effect on CMake > 3.17.0. See CMake's [release notes](https://cmake.org/cmake/help/v3.17/release/3.17.html?highlight=cmake_message_log_level#variables) and [docs](https://cmake.org/cmake/help/v3.17/variable/CMAKE_MESSAGE_LOG_LEVEL.html). Fixes #1299. Closes https://github.com/google/iree/pull/1313 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/iree/pull/1313 from ScottTodd:cmake-configure 600851963196c06213b32fd82641d1fe6ec95949 PiperOrigin-RevId: 303846155
diff --git a/CMakeLists.txt b/CMakeLists.txt index b71703b..c336278 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -157,7 +157,13 @@ endif() if(${IREE_BUILD_DEBUGGER} OR ${IREE_BUILD_SAMPLES}) - add_subdirectory(third_party/sdl2 EXCLUDE_FROM_ALL) + # sdl2 logs are spammy - change log level while adding + function(include_sdl2) + set(CMAKE_MESSAGE_LOG_LEVEL "WARNING") + add_subdirectory(third_party/sdl2 EXCLUDE_FROM_ALL) + endfunction() + include_sdl2() + add_subdirectory(build_tools/third_party/dear_imgui EXCLUDE_FROM_ALL) endif()