mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[magnum-extras] Fix build without features
This commit is contained in:
parent
ca7f50e598
commit
9bf1809e28
@ -1,5 +1,5 @@
|
|||||||
Source: magnum-extras
|
Source: magnum-extras
|
||||||
Version: 2018.02-1
|
Version: 2018.02-2
|
||||||
Build-Depends: magnum
|
Build-Depends: magnum
|
||||||
Description: Extras for magnum, C++11/C++14 graphics middleware for games and data visualization http://magnum.graphics/
|
Description: Extras for magnum, C++11/C++14 graphics middleware for games and data visualization http://magnum.graphics/
|
||||||
Default-Features:
|
Default-Features:
|
||||||
|
@ -41,26 +41,30 @@ vcpkg_configure_cmake(
|
|||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/MagnumExtras TARGET_PATH share/MagnumExtras)
|
||||||
|
|
||||||
# Messages to the user
|
# Messages to the user
|
||||||
if("ui" IN_LIST FEATURES)
|
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")
|
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()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# Debug includes and share are the same as release
|
# Debug includes and share are the same as release
|
||||||
file(REMOVE_RECURSE
|
file(REMOVE_RECURSE
|
||||||
${CURRENT_PACKAGES_DIR}/debug/include
|
${CURRENT_PACKAGES_DIR}/debug/include
|
||||||
${CURRENT_PACKAGES_DIR}/debug/share)
|
${CURRENT_PACKAGES_DIR}/debug/share)
|
||||||
|
|
||||||
# Clean up empty directories
|
# Clean up empty directories
|
||||||
if(NOT FEATURES)
|
if("${FEATURES}" STREQUAL "")
|
||||||
file(REMOVE_RECURSE
|
file(REMOVE_RECURSE
|
||||||
${CURRENT_PACKAGES_DIR}/bin
|
${CURRENT_PACKAGES_DIR}/bin
|
||||||
${CURRENT_PACKAGES_DIR}/lib
|
${CURRENT_PACKAGES_DIR}/lib
|
||||||
${CURRENT_PACKAGES_DIR}/debug)
|
${CURRENT_PACKAGES_DIR}/debug
|
||||||
|
)
|
||||||
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user