diff options
author | Chris Robinson <[email protected]> | 2021-07-17 11:47:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-07-17 11:47:05 -0700 |
commit | 6406cc614130ba5f04555ba46e849c685ae6eae0 (patch) | |
tree | ff02105b091c88630d737e20c31e499926d26fad | |
parent | 87894057b240be825699dcdbfaf585862148edb3 (diff) |
Still print a warning when DBus or Qt5 aren't found
This way merely avoids the several lines of spam when the config module isn't
found, which there's otherwise no reasonable way to test for since they're
provided by the package, which you need to use find_package to search for,
which causes the spam. It's still useful to report the packages weren't found
in case they were expected.
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 13c62839..446222ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -722,6 +722,16 @@ if(DBus1_FOUND) set(EXTRA_LIBS ${EXTRA_LIBS} ${DBus1_LIBRARIES}) endif() endif() +else() + set(MISSING_VARS "") + if(NOT DBus1_INCLUDE_DIRS) + set(MISSING_VARS "${MISSING_VARS} DBus1_INCLUDE_DIRS") + endif() + if(NOT DBus1_LIBRARIES) + set(MISSING_VARS "${MISSING_VARS} DBus1_LIBRARIES") + endif() + message(STATUS "Could NOT find DBus1 (missing:${MISSING_VARS})") + unset(MISSING_VARS) endif() if(ALSOFT_REQUIRE_RTKIT AND NOT HAVE_RTKIT) message(FATAL_ERROR "Failed to enabled required RTKit support") @@ -1200,6 +1210,9 @@ if(ALSOFT_UTILS) find_package(MySOFA) if(NOT ALSOFT_NO_CONFIG_UTIL) find_package(Qt5Widgets QUIET) + if(NOT Qt5Widgets_FOUND) + message(STATUS "Could NOT find Qt5Widgets") + endif() endif() endif() if(ALSOFT_UTILS OR ALSOFT_EXAMPLES) |