diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-02-03 18:51:32 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-02-03 18:51:32 -0500 |
commit | a6821faf2e9944c7b00101038742eec85b4aa643 (patch) | |
tree | e6d4c3e5fbd927cf56cba1c710538e802dd30c40 /CMakeLists.txt | |
parent | ecc83036c1522a024e1f5a1efc6fe533b907daf1 (diff) | |
download | abaddon-portaudio-a6821faf2e9944c7b00101038742eec85b4aa643.tar.gz abaddon-portaudio-a6821faf2e9944c7b00101038742eec85b4aa643.zip |
dont disable libhandy if not found when USE_LIBHANDY is set
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d57239..cf44f0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,15 +99,10 @@ target_link_libraries(abaddon ${ZLIB_LIBRARY}) target_link_libraries(abaddon ${NLOHMANN_JSON_LIBRARIES}) if (USE_LIBHANDY) - find_package(libhandy) - if (NOT libhandy_FOUND) - message("libhandy could not be found. features requiring it have been disabled") - set(USE_LIBHANDY OFF) - else () - target_include_directories(abaddon PUBLIC ${libhandy_INCLUDE_DIRS}) - target_link_libraries(abaddon ${libhandy_LIBRARIES}) - target_compile_definitions(abaddon PRIVATE WITH_LIBHANDY) - endif () + find_package(libhandy REQUIRED) + target_include_directories(abaddon PUBLIC ${libhandy_INCLUDE_DIRS}) + target_link_libraries(abaddon ${libhandy_LIBRARIES}) + target_compile_definitions(abaddon PRIVATE WITH_LIBHANDY) endif () if (USE_KEYCHAIN) |