[flatbuffers] fix flatc.exe moving

This commit is contained in:
Mikhail Paulyshka 2017-03-14 04:14:37 +03:00
parent 0038dd86bc
commit ebd7b7445b

View File

@ -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()