[flatbuffers] fix executable remaining in bin folder#4294
Merged
ras0219-msft merged 2 commits intomicrosoft:masterfrom Oct 16, 2018
Merged
[flatbuffers] fix executable remaining in bin folder#4294ras0219-msft merged 2 commits intomicrosoft:masterfrom
ras0219-msft merged 2 commits intomicrosoft:masterfrom
Conversation
|
You could avoid to manually handle the executable extension and let CMake do the magic instead, for instance: vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/flatbuffers")
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
${flatc_path}
${CURRENT_PACKAGES_DIR}/tools/flatbuffers/${flatc_executable}
)
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)Note that I would also remove completely the check to remove the bin directories (last line of the code above), since it is required for static builds and the flatbuffers is forced to be build statically (first 4 lines of the portfile). |
Contributor
Author
|
@SalvoVirga I update with your changes. It's indeed a better solution. thanks |
6df60e0 to
0422155
Compare
Contributor
Author
|
update the base after this PR #3873 |
Contributor
|
Thanks for the PR and for dealing with the rebase! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix for this message at build time :