aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-24 09:35:49 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-24 09:35:49 -0700
commite47f165146535e3c6cc21d62a3b7832ce029e02b (patch)
treed8c6c20c6f3548e68831d6af5887944f37549627
parent8f4ce4fab638b70ff890f0e7c09b92f866b1493d (diff)
downloadvcpkg-e47f165146535e3c6cc21d62a3b7832ce029e02b.tar.gz
vcpkg-e47f165146535e3c6cc21d62a3b7832ce029e02b.zip
[magnum-integration] Fix empty build
-rw-r--r--ports/magnum-integration/portfile.cmake14
1 files changed, 6 insertions, 8 deletions
diff --git a/ports/magnum-integration/portfile.cmake b/ports/magnum-integration/portfile.cmake
index 8ef1899fd..da9c393b7 100644
--- a/ports/magnum-integration/portfile.cmake
+++ b/ports/magnum-integration/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 "")
@@ -44,14 +40,16 @@ vcpkg_install_cmake()
# 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(NOT FEATURES)
+if("${FEATURES}" STREQUAL "core")
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/bin
${CURRENT_PACKAGES_DIR}/lib
- ${CURRENT_PACKAGES_DIR}/debug)
+ ${CURRENT_PACKAGES_DIR}/debug
+ )
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
endif()