diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-08-15 00:52:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-14 09:52:17 -0700 |
| commit | b8d3e831dd109217763fee91d750f15745997858 (patch) | |
| tree | 4bb1c9230172da4f53a669d739db5c474dee95f2 | |
| parent | e09594e42982bf7272bb12f49a4869b3fb8b90b7 (diff) | |
| download | vcpkg-b8d3e831dd109217763fee91d750f15745997858.tar.gz vcpkg-b8d3e831dd109217763fee91d750f15745997858.zip | |
[imgui] Add messages for unsupported features (#12890)
| -rw-r--r-- | ports/imgui/CONTROL | 2 | ||||
| -rw-r--r-- | ports/imgui/portfile.cmake | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/imgui/CONTROL b/ports/imgui/CONTROL index 75a46c25c..e87894d5e 100644 --- a/ports/imgui/CONTROL +++ b/ports/imgui/CONTROL @@ -1,6 +1,6 @@ Source: imgui Version: 1.77 -Port-Version: 2 +Port-Version: 3 Homepage: https://github.com/ocornut/imgui Description: Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies. diff --git a/ports/imgui/portfile.cmake b/ports/imgui/portfile.cmake index 6ee33622b..7b8cf3026 100644 --- a/ports/imgui/portfile.cmake +++ b/ports/imgui/portfile.cmake @@ -10,6 +10,10 @@ vcpkg_from_github( file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}) +if(("metal-binding" IN_LIST FEATURES OR "osx-binding" IN_LIST FEATURES) AND (NOT VCPKG_TARGET_IS_OSX)) + message(FATAL_ERROR "Feature metal-binding and osx-binding are only supported on osx.") +endif() + vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS allegro5-binding IMGUI_BUILD_ALLEGRO5_BINDING dx9-binding IMGUI_BUILD_DX9_BINDING |
