From 21be384c3d10c74406ff67c89325e21f21ec3f1e Mon Sep 17 00:00:00 2001 From: David Bullado Date: Fri, 9 Dec 2022 20:13:08 +0100 Subject: [PATCH] CMakeLists.txt: find build dependency liborc-0.4 --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index acfdd7a..183c004 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -126,6 +126,14 @@ endif(APPLE) ######################################################################## find_package(Doxygen) +find_library(orc_LIBRARY NAMES orc-0.4) + +if(orc_LIBRARY) + message(STATUS "Found liborc: ${orc_LIBRARY}") +else() + message(FATAL_ERROR "Could not find liborc") +endif() + ######################################################################## # Setup doxygen option ########################################################################