Permalink
Browse files

Prefer system utf8cpp if available

The current logic always uses the bundled utf8cpp.  This is contrary
to the stated intent of commit
1d7dd3e if UTFCPP_PATH is not set
explicitly.
  • Loading branch information...
scfc committed Jan 14, 2019
1 parent 40f0bbf commit f455d65992cc7189a2a6f60386901af9ef6eec68
Showing with 2 additions and 1 deletion.
  1. +2 −1 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)

0 comments on commit f455d65

Please sign in to comment.