aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2017-03-13 18:42:21 -0700
committerGitHub <noreply@github.com>2017-03-13 18:42:21 -0700
commit01614a375ebd5cf575267e070c067822c40b456f (patch)
tree1059d4625099db7d44dd50daf7933ee1ff863435
parent0038dd86bc97df8f0c528d0b9235b9bfb9400e48 (diff)
parentebd7b7445bc53ae448cbeb010676ec726942ee51 (diff)
downloadvcpkg-01614a375ebd5cf575267e070c067822c40b456f.tar.gz
vcpkg-01614a375ebd5cf575267e070c067822c40b456f.zip
Merge pull request #795 from Mixaill/flatbuffers-tools
[flatbuffers] fix flatc.exe moving
-rw-r--r--ports/flatbuffers/portfile.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/flatbuffers/portfile.cmake b/ports/flatbuffers/portfile.cmake
index 03e0e9c28..e2c05d2c0 100644
--- a/ports/flatbuffers/portfile.cmake
+++ b/ports/flatbuffers/portfile.cmake
@@ -37,12 +37,14 @@ vcpkg_configure_cmake(
# OPTIONS_DEBUG -DDEBUGGABLE=1
)
+vcpkg_build_cmake()
vcpkg_install_cmake()
if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()
if(EXISTS ${CURRENT_PACKAGES_DIR}/bin/flatc.exe)
+ make_directory(${CURRENT_PACKAGES_DIR}/tools)
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/flatc.exe ${CURRENT_PACKAGES_DIR}/tools/flatc.exe)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
endif()