diff options
| author | Park DongHa <luncliff@gmail.com> | 2021-01-28 07:28:14 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-27 14:28:14 -0800 |
| commit | 511e887ee71a8088401518ec79450f6f1f412c94 (patch) | |
| tree | 3f4944c7b069510b2e16680ea6795642a1160539 /ports/nsync/fix-install.patch | |
| parent | 3b469cb563cc77bdb078a1af2471735541661eaf (diff) | |
| download | vcpkg-511e887ee71a8088401518ec79450f6f1f412c94.tar.gz vcpkg-511e887ee71a8088401518ec79450f6f1f412c94.zip | |
[nsync] create a new port (#15714)
* [nsync] create a new port
* [nsync] support system name WindowsStore
* [nsync] use "version" instead of "version-string"
* [nsync] add version JSON
* Update ports/nsync/portfile.cmake
* [nsync] apply PR feedback
* [nsync] update SHA of port
* [nsync] extract vcpkg_replace_string to patch
* update version SHA
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Diffstat (limited to 'ports/nsync/fix-install.patch')
| -rw-r--r-- | ports/nsync/fix-install.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ports/nsync/fix-install.patch b/ports/nsync/fix-install.patch new file mode 100644 index 000000000..efe560d15 --- /dev/null +++ b/ports/nsync/fix-install.patch @@ -0,0 +1,32 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6b1f1dc..328f9b6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -80,7 +80,7 @@ set (NSYNC_OS_CPP_SRC + # https://cmake.org/cmake/help/v3.1/policy/CMP0054.html + + # Pick the include directory for the operating system. +-if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX") ++if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX" OR "${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsStoreX") + include_directories ("${PROJECT_SOURCE_DIR}/platform/win32") + set (NSYNC_CPP_FLAGS "/TP") + +@@ -230,7 +230,7 @@ elseif (("${CMAKE_SYSTEM_PROCESSOR}X" STREQUAL "ppc64X")) + endif () + + # Windows uses some include files from the posix directory also. +-if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX") ++if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX" OR "${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsStoreX") + include_directories ("${PROJECT_SOURCE_DIR}/platform/posix") + endif () + +@@ -396,7 +396,8 @@ if (NSYNC_ENABLE_TESTS) + endforeach (t) + endif () + +-set (CMAKE_SKIP_INSTALL_ALL_DEPENDENCY ON) ++# By default, install nsync always ++# set (CMAKE_SKIP_INSTALL_ALL_DEPENDENCY ON) + + install (TARGETS nsync + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries |
