diff options
| -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 |
