aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/easyloggingpp/0002_fix_build_uwp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/easyloggingpp/0002_fix_build_uwp.patch')
-rw-r--r--vcpkg/ports/easyloggingpp/0002_fix_build_uwp.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/easyloggingpp/0002_fix_build_uwp.patch b/vcpkg/ports/easyloggingpp/0002_fix_build_uwp.patch
new file mode 100644
index 0000000..7120ac1
--- /dev/null
+++ b/vcpkg/ports/easyloggingpp/0002_fix_build_uwp.patch
@@ -0,0 +1,22 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e08df91..7c02adf 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -28,6 +28,7 @@ option(lib_utc_datetime "Build library with UTC date/time logging" OFF)
+ option(no_default_logfile "Do not write to default log file \"myeasylog.log\" (define ELPP_NO_DEFAULT_LOG_FILE)" OFF)
+ option(thread_safe "Build easyloggingpp thread safe (define ELPP_THREAD_SAFE)" OFF)
+ option(use_std_threads "Use standard library thread synchronization (define ELPP_FORCE_USE_STD_THREAD)" OFF)
++option(is_uwp "The compilation platform is uwp." OFF)
+
+ set(ELPP_MAJOR_VERSION "9")
+ set(ELPP_MINOR_VERSION "96")
+@@ -76,6 +77,9 @@ if (build_static_lib)
+ require_cpp14()
+ add_library(easyloggingpp STATIC src/easylogging++.cc)
+ set_property(TARGET easyloggingpp PROPERTY POSITION_INDEPENDENT_CODE ON)
++ if(is_uwp)
++ target_compile_definitions(easyloggingpp PUBLIC WIN32_LEAN_AND_MEAN ELPP_WINSOCK2)
++ endif()
+
+ install(TARGETS
+ easyloggingpp