33 lines
788 B
Diff
33 lines
788 B
Diff
---
|
|
cmake/FindUtfcpp.cmake | 15 +++------------
|
|
1 file changed, 3 insertions(+), 12 deletions(-)
|
|
|
|
diff --git a/cmake/FindUtfcpp.cmake b/cmake/FindUtfcpp.cmake
|
|
index c9d3e06..762cf58 100644
|
|
--- a/cmake/FindUtfcpp.cmake
|
|
+++ b/cmake/FindUtfcpp.cmake
|
|
@@ -6,18 +6,9 @@
|
|
|
|
include(CheckCXXSourceCompiles)
|
|
|
|
-set(UTFCPP_FOUND FALSE)
|
|
-
|
|
-find_path(UTFCPP_INCLUDE_DIR
|
|
- NAMES utf8.h
|
|
- HINTS "${UTFCPP_PATH}"
|
|
- PATHS "${PROJECT_SOURCE_DIR}/lib/utfcpp/v3/source"
|
|
-)
|
|
-
|
|
-if (UTFCPP_INCLUDE_DIR)
|
|
- set(CMAKE_REQUIRED_INCLUDES "${UTFCPP_INCLUDE_DIR}")
|
|
- set(UTFCPP_FOUND TRUE)
|
|
-endif()
|
|
+set(UTFCPP_FOUND TRUE)
|
|
+set(UTFCPP_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lib/utfcpp/v3/source")
|
|
+set(CMAKE_REQUIRED_INCLUDES "${UTFCPP_INCLUDE_DIR}")
|
|
|
|
check_cxx_source_compiles("
|
|
#include <string>
|
|
--
|
|
2.42.0
|