Skip to content

Commit

Permalink
Add options for using standard library module.
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe2933 committed Jul 22, 2024
1 parent 00a75d3 commit eaada56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion overlays/vku/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ vcpkg_from_github(
# Module project doesn't use header files.
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
# Set CMake variables from the requested features.
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
std-module VKU_USE_STD_MODULE
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_cmake_install()

file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/share)
Expand Down
5 changes: 4 additions & 1 deletion overlays/vku/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
},
"vulkan-memory-allocator",
"vulkan-memory-allocator-hpp"
]
],
"features": {
"std-module": { "description": "Use standard library module for the library compilation" }
}
}

0 comments on commit eaada56

Please sign in to comment.