From 0b849787cd825f5d4e5b16f1e64552ecb10d0b76 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 21 Mar 2018 11:43:49 +0100 Subject: Fix CBFlib detection --- CMake/FindCBF.cmake | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'CMake') diff --git a/CMake/FindCBF.cmake b/CMake/FindCBF.cmake index d65b0ccf..e51fd01a 100644 --- a/CMake/FindCBF.cmake +++ b/CMake/FindCBF.cmake @@ -10,7 +10,18 @@ if (CBF_INCLUDES) set (CBF_FIND_QUIETLY TRUE) endif (CBF_INCLUDES) -find_path (CBF_INCLUDES cbf.h PATH_SUFFIXES libcbf cbf) +find_path (CBF_CBF_INCLUDES cbf/cbf.h) +find_path (CBFLIB_CBF_INCLUDES cbflib/cbf.h) + +if (NOT CBF_CBF_INCLUDES MATCHES "NOTFOUND") + message(STATUS "Found cbf/cbf.h in ${CBF_CBF_INCLUDES}") + set(CBF_INCLUDES ${CBF_CBF_INCLUDES}) + set(HAVE_CBF_CBF_H ON) +elseif (NOT CBFLIB_CBF_INCLUDES MATCHES "NOTFOUND") + message(STATUS "Found cbflib/cbf.h in ${CBFLIB_CBF_INCLUDES}") + set(CBF_INCLUDES ${CBFLIB_CBF_INCLUDES}) + set(HAVE_CBFLIB_CBF_H ON) +endif (NOT CBF_CBF_INCLUDES MATCHES "NOTFOUND") find_library (CBF_LIBRARIES NAMES cbf) -- cgit v1.2.3