aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Romero <viromer@microsoft.com>2019-01-23 09:55:51 -0800
committerVictor Romero <viromer@microsoft.com>2019-01-23 09:55:51 -0800
commit55ca74d64993eddeed05224564502b9bc2267fff (patch)
tree160d73d47b4b951c123d1dcd3e3df612e6497c2c
parent919e5788a9545d58f3654a3f5b0b42b66812c57c (diff)
downloadvcpkg-55ca74d64993eddeed05224564502b9bc2267fff.tar.gz
vcpkg-55ca74d64993eddeed05224564502b9bc2267fff.zip
[x265] Fix detect platform
-rw-r--r--ports/x265/CONTROL2
-rw-r--r--ports/x265/portfile.cmake4
2 files changed, 3 insertions, 3 deletions
diff --git a/ports/x265/CONTROL b/ports/x265/CONTROL
index 537556763..f2185d2f0 100644
--- a/ports/x265/CONTROL
+++ b/ports/x265/CONTROL
@@ -1,3 +1,3 @@
Source: x265
-Version: 2.9-1
+Version: 2.9-2
Description: x265 is a H.265 / HEVC video encoder application library, designed to encode video or images into an H.265 / HEVC encoded bitstream.
diff --git a/ports/x265/portfile.cmake b/ports/x265/portfile.cmake
index 7f431a923..87f11c4f4 100644
--- a/ports/x265/portfile.cmake
+++ b/ports/x265/portfile.cmake
@@ -30,9 +30,9 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/x265)
-if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "LINUX")
+if(UNIX)
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/x265 ${CURRENT_PACKAGES_DIR}/tools/x265/x265)
-else()
+elseif(WIN32)
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/x265.exe ${CURRENT_PACKAGES_DIR}/tools/x265/x265.exe)
endif()