aboutsummaryrefslogtreecommitdiff
path: root/ports/flatbuffers
diff options
context:
space:
mode:
authorBob Kast <bob.kast@emc.com>2018-10-23 09:06:58 -0400
committerBob Kast <bob.kast@emc.com>2018-10-23 09:06:58 -0400
commit230d795ae3c3f2e45821b887c6065a81a8c04326 (patch)
tree7b014a1547ff1cc9ef80add56eb03b17774a1ff6 /ports/flatbuffers
parent3d1fbeb7de48a3d7a782be7b8722efb5015c7010 (diff)
parent9b21ff9612916e24f89c6839599d3d50446597d8 (diff)
downloadvcpkg-230d795ae3c3f2e45821b887c6065a81a8c04326.tar.gz
vcpkg-230d795ae3c3f2e45821b887c6065a81a8c04326.zip
Merge branch 'master' of https://github.com/EMCECS/vcpkg
# Conflicts: # ports/ecsutil/CONTROL # ports/ecsutil/portfile.cmake
Diffstat (limited to 'ports/flatbuffers')
-rw-r--r--ports/flatbuffers/portfile.cmake16
1 files changed, 8 insertions, 8 deletions
diff --git a/ports/flatbuffers/portfile.cmake b/ports/flatbuffers/portfile.cmake
index 51212bd32..b6a0e6ba5 100644
--- a/ports/flatbuffers/portfile.cmake
+++ b/ports/flatbuffers/portfile.cmake
@@ -30,22 +30,22 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/flatbuffers")
-if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/bin AND NOT EXISTS ${CURRENT_PACKAGES_DIR}/debug/bin/flatc)
- file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
-endif()
-if(EXISTS ${CURRENT_PACKAGES_DIR}/bin/flatc.exe)
+file(GLOB flatc_path ${CURRENT_PACKAGES_DIR}/bin/flatc*)
+if(flatc_path)
make_directory(${CURRENT_PACKAGES_DIR}/tools/flatbuffers)
+ get_filename_component(flatc_executable ${flatc_path} NAME)
file(
RENAME
- ${CURRENT_PACKAGES_DIR}/bin/flatc.exe
- ${CURRENT_PACKAGES_DIR}/tools/flatbuffers/flatc.exe
+ ${flatc_path}
+ ${CURRENT_PACKAGES_DIR}/tools/flatbuffers/${flatc_executable}
)
- file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
- vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/flatbuffers)
+vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/flatbuffers)
endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/flatbuffers)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/flatbuffers/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/flatbuffers/copyright)
+