From a6821faf2e9944c7b00101038742eec85b4aa643 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 3 Feb 2023 18:51:32 -0500 Subject: dont disable libhandy if not found when USE_LIBHANDY is set --- CMakeLists.txt | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3