From 1aa26d01a9654bdb73ca54d4bb34ff8855723a93 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 21 Aug 2019 22:45:52 +0200 Subject: CMake: Produce a fatal error if triehash could not be found --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 98e97473b..0487429c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,10 @@ find_package(Perl REQUIRED) find_program(TRIEHASH_EXECUTABLE NAMES triehash) +if (NOT TRIEHASH_EXECUTABLE) + message(FATAL_ERROR "Could not find triehash executable") +endif() + if(USE_NLS) find_package(Intl REQUIRED) link_libraries(${Intl_LIBRARIES}) -- cgit v1.2.3