aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhbanito <shpioner@mail.ru>2019-07-09 21:42:30 +0300
committerPhil Christensen <philc@microsoft.com>2019-07-09 11:42:30 -0700
commit374806d6597d88bfeb6801858bbc9cf91e34b0ca (patch)
tree32b02e98f3cc2a47cea997e71b40ead571599024
parente5d7cc9160b929e8609b43a7bda5ad0e9323be75 (diff)
downloadvcpkg-374806d6597d88bfeb6801858bbc9cf91e34b0ca.tar.gz
vcpkg-374806d6597d88bfeb6801858bbc9cf91e34b0ca.zip
[tesseract] Fix Port. Making it crossplatform (#7144)
-rw-r--r--ports/tesseract/portfile.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/ports/tesseract/portfile.cmake b/ports/tesseract/portfile.cmake
index 18b63cab6..9650db44a 100644
--- a/ports/tesseract/portfile.cmake
+++ b/ports/tesseract/portfile.cmake
@@ -31,7 +31,11 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
# Install tool
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/tesseract)
-file(COPY ${CURRENT_PACKAGES_DIR}/bin/tesseract.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/tesseract)
+set(EXTENSION)
+if(WIN32)
+ set(EXTENSION ".exe")
+endif()
+file(COPY ${CURRENT_PACKAGES_DIR}/bin/tesseract${EXTENSION} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/tesseract)
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/tesseract)
vcpkg_copy_pdbs()