summaryrefslogtreecommitdiff
path: root/cmake/FindUtfcpp.cmake
diff options
context:
space:
mode:
authorTim Landscheidt <tim@tim-landscheidt.de>2019-01-14 20:22:25 +0000
committerTim Landscheidt <tim@tim-landscheidt.de>2019-01-14 20:28:41 +0000
commitf455d65992cc7189a2a6f60386901af9ef6eec68 (patch)
tree6b3b534392146c8a08e6967e899df11ae544fa09 /cmake/FindUtfcpp.cmake
parent40f0bbfbb75296cc42e9fd44ac168048469176f2 (diff)
downloadfork-ledger-f455d65992cc7189a2a6f60386901af9ef6eec68.tar.gz
fork-ledger-f455d65992cc7189a2a6f60386901af9ef6eec68.tar.bz2
fork-ledger-f455d65992cc7189a2a6f60386901af9ef6eec68.zip
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.
Diffstat (limited to 'cmake/FindUtfcpp.cmake')
-rw-r--r--cmake/FindUtfcpp.cmake3
1 files changed, 2 insertions, 1 deletions
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)