diff --git a/CMakeLists.txt b/CMakeLists.txt index 63b6df913..f8d3d3ca7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -601,7 +601,7 @@ endif() include(CheckFunctionExists) check_function_exists(wcwidth HAVE_WCWIDTH) if(NOT HAVE_WCWIDTH) - list(APPEND LIBFASTFETCH_SRC src/util/wcwidth.c) + list(APPEND LIBFASTFETCH_SRC src/3rdparty/mk_wcwidch/wcwidth.c) endif() add_library(libfastfetch OBJECT diff --git a/src/3rdparty/mk_wcwidch/repo.json b/src/3rdparty/mk_wcwidch/repo.json new file mode 100644 index 000000000..8a71b4b81 --- /dev/null +++ b/src/3rdparty/mk_wcwidch/repo.json @@ -0,0 +1,7 @@ +{ + "home": "https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c", + "license": "Embed in source", + "version": "2007-05-26 (Unicode 5.0)", + "author": "Markus Kuhn", + "modified": "CarterLi" +} diff --git a/src/util/wcwidth.c b/src/3rdparty/mk_wcwidch/wcwidth.c similarity index 100% rename from src/util/wcwidth.c rename to src/3rdparty/mk_wcwidch/wcwidth.c