aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-24 09:33:40 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-24 09:33:40 -0700
commit8f4ce4fab638b70ff890f0e7c09b92f866b1493d (patch)
treedc8a88aea97972f6ee488e28208fb743bbfe60e3
parentb14c1ba9088bd5b2ec88ebead50677cc6cc1a576 (diff)
downloadvcpkg-8f4ce4fab638b70ff890f0e7c09b92f866b1493d.tar.gz
vcpkg-8f4ce4fab638b70ff890f0e7c09b92f866b1493d.zip
[magnum-extras] Fix empty build
-rw-r--r--ports/magnum-extras/portfile.cmake12
1 files changed, 4 insertions, 8 deletions
diff --git a/ports/magnum-extras/portfile.cmake b/ports/magnum-extras/portfile.cmake
index 402c1aa1f..d97508497 100644
--- a/ports/magnum-extras/portfile.cmake
+++ b/ports/magnum-extras/portfile.cmake
@@ -7,11 +7,7 @@ vcpkg_from_github(
HEAD_REF master
)
-if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
- set(BUILD_STATIC 1)
-else()
- set(BUILD_STATIC 0)
-endif()
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
# Handle features
set(_COMPONENT_FLAGS "")
@@ -48,14 +44,14 @@ if("ui" IN_LIST FEATURES)
message(WARNING "It is recommended to install one of magnum-plugins[freetypefont,harfbuzzfont,stbtruetypefont] to have the UI library working out of the box")
endif()
-
# Debug includes and share are the same as release
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
- ${CURRENT_PACKAGES_DIR}/debug/share)
+ ${CURRENT_PACKAGES_DIR}/debug/share
+)
# Clean up empty directories
-if("${FEATURES}" STREQUAL "")
+if("${FEATURES}" STREQUAL "core")
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/bin
${CURRENT_PACKAGES_DIR}/lib