aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé de Jesús Medina Ríos <dgizmo6@gmail.com>2019-01-16 22:23:59 -0800
committerJosé de Jesús Medina Ríos <dgizmo6@gmail.com>2019-01-16 22:23:59 -0800
commit919e5788a9545d58f3654a3f5b0b42b66812c57c (patch)
tree3a93e5ff6bb6e3e83975992a3e1fbe5357102f44
parentb6fe5b5db5bb7bfd9a3bf14cebb899fbd4c2f20a (diff)
downloadvcpkg-919e5788a9545d58f3654a3f5b0b42b66812c57c.tar.gz
vcpkg-919e5788a9545d58f3654a3f5b0b42b66812c57c.zip
[x265] enable linux compilation
-rw-r--r--ports/x265/portfile.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/ports/x265/portfile.cmake b/ports/x265/portfile.cmake
index 090a2db22..7f431a923 100644
--- a/ports/x265/portfile.cmake
+++ b/ports/x265/portfile.cmake
@@ -29,7 +29,12 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/x265)
-file(RENAME ${CURRENT_PACKAGES_DIR}/bin/x265.exe ${CURRENT_PACKAGES_DIR}/tools/x265/x265.exe)
+
+if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "LINUX")
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/x265 ${CURRENT_PACKAGES_DIR}/tools/x265/x265)
+else()
+ file(RENAME ${CURRENT_PACKAGES_DIR}/bin/x265.exe ${CURRENT_PACKAGES_DIR}/tools/x265/x265.exe)
+endif()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)