aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Grodzitski <utromvecherom@gmail.com>2020-10-22 03:41:53 +0300
committerGitHub <noreply@github.com>2020-10-21 17:41:53 -0700
commitb1dea7104f38eae95284470af2833b628a4847bb (patch)
treeb860006c602a97b6a82fd2ac14b07f4fa3881914
parent3dbec6c25561d627282d15b5a5c8d8c658bd4875 (diff)
downloadvcpkg-b1dea7104f38eae95284470af2833b628a4847bb.tar.gz
vcpkg-b1dea7104f38eae95284470af2833b628a4847bb.zip
[log4cplus ] Normilize log4cplus unicode build (#14100)
-rw-r--r--ports/log4cplus/CONTROL4
-rw-r--r--ports/log4cplus/portfile.cmake16
2 files changed, 16 insertions, 4 deletions
diff --git a/ports/log4cplus/CONTROL b/ports/log4cplus/CONTROL
index 9a288a1b3..39e877fbc 100644
--- a/ports/log4cplus/CONTROL
+++ b/ports/log4cplus/CONTROL
@@ -1,5 +1,9 @@
Source: log4cplus
Version: 2.0.5
+Port-Version: 1
Homepage: https://github.com/log4cplus/log4cplus
Description: A simple to use C++ logging API providing thread--safe, flexible, and arbitrarily granular control over log management and configuration
Build-Depends: catch
+
+Feature: unicode
+Description: Unicode logger
diff --git a/ports/log4cplus/portfile.cmake b/ports/log4cplus/portfile.cmake
index a8862e725..975e030d0 100644
--- a/ports/log4cplus/portfile.cmake
+++ b/ports/log4cplus/portfile.cmake
@@ -23,13 +23,21 @@ file(
DESTINATION ${SOURCE_PATH}/threadpool
)
+vcpkg_check_features(
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ unicode UNICODE
+)
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
- OPTIONS
- -DLOG4CPLUS_BUILD_TESTING=OFF
- -DLOG4CPLUS_BUILD_LOGGINGSERVER=OFF
+ OPTIONS
+ -DLOG4CPLUS_BUILD_TESTING=OFF
+ -DLOG4CPLUS_BUILD_LOGGINGSERVER=OFF
-DWITH_UNIT_TESTS=OFF
+ -DLOG4CPLUS_ENABLE_DECORATED_LIBRARY_NAME=OFF
+ ${FEATURE_OPTIONS}
)
vcpkg_install_cmake()
@@ -42,4 +50,4 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
# Handle copyright
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)