diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-15 16:12:29 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-15 16:12:29 -0800 |
| commit | 500fe7957a04e4e9a5dc320580f9e2151f050a65 (patch) | |
| tree | 0ac86355750c202fe6f814c37d42f01eef5f1b0b | |
| parent | aeae9969b2f682414d7dcce05fd436966dc743fc (diff) | |
| download | vcpkg-500fe7957a04e4e9a5dc320580f9e2151f050a65.tar.gz vcpkg-500fe7957a04e4e9a5dc320580f9e2151f050a65.zip | |
[glbinding] Delete exes that appear in the presence of glfw3. Resolves #537
| -rw-r--r-- | ports/glbinding/portfile.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/glbinding/portfile.cmake b/ports/glbinding/portfile.cmake index 165c8d889..6f6dfcc68 100644 --- a/ports/glbinding/portfile.cmake +++ b/ports/glbinding/portfile.cmake @@ -53,6 +53,19 @@ file(REMOVE ${CURRENT_PACKAGES_DIR}/AUTHORS ${CURRENT_PACKAGES_DIR}/debug/VERSION ) +# There are some executables that are only built if glfw is found by CMake (see source/tools/*/CMakeLists.txt). +# glfw is not listed as a dependency for glbinding, so this only happen on systems where package glfw3 is present. +# glbinding's CMake doesn't offer the choice to exlude those tools from the build process, so deleting them here: +file(REMOVE ${CURRENT_PACKAGES_DIR}/glcontexts.exe + ${CURRENT_PACKAGES_DIR}/glfunctions.exe + ${CURRENT_PACKAGES_DIR}/glmeta.exe + ${CURRENT_PACKAGES_DIR}/glqueries.exe + ${CURRENT_PACKAGES_DIR}/debug/glcontextsd.exe + ${CURRENT_PACKAGES_DIR}/debug/glfunctionsd.exe + ${CURRENT_PACKAGES_DIR}/debug/glmetad.exe + ${CURRENT_PACKAGES_DIR}/debug/glqueriesd.exe +) + # Handle copyright file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/glbinding) file(RENAME ${CURRENT_PACKAGES_DIR}/share/glbinding/LICENSE ${CURRENT_PACKAGES_DIR}/share/glbinding/copyright) |
