From f455d65992cc7189a2a6f60386901af9ef6eec68 Mon Sep 17 00:00:00 2001 From: Tim Landscheidt Date: Mon, 14 Jan 2019 20:22:25 +0000 Subject: Prefer system utf8cpp if available The current logic always uses the bundled utf8cpp. This is contrary to the stated intent of commit 1d7dd3e082be8a046f21d4a2d51026ac3c1f7c14 if UTFCPP_PATH is not set explicitly. --- cmake/FindUtfcpp.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake/FindUtfcpp.cmake') diff --git a/cmake/FindUtfcpp.cmake b/cmake/FindUtfcpp.cmake index 185a8d88..93828ef4 100644 --- a/cmake/FindUtfcpp.cmake +++ b/cmake/FindUtfcpp.cmake @@ -10,7 +10,8 @@ set(UTFCPP_FOUND FALSE) find_path(UTFCPP_INCLUDE_DIR NAMES utf8.h - HINTS "${UTFCPP_PATH}" "${PROJECT_SOURCE_DIR}/lib/utfcpp/v2_0/source" + HINTS "${UTFCPP_PATH}" + PATHS "${PROJECT_SOURCE_DIR}/lib/utfcpp/v2_0/source" ) if (UTFCPP_INCLUDE_DIR) -- cgit v1.2.3