summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt13
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)