add INTERFACE_INCLUDE_DIRECTORIES to vckpcg wrapper

This commit is contained in:
daanx 2025-01-13 16:03:36 -08:00
parent af602df758
commit bd8cdc912c
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@ to check out a specific commit, version, or branch of mimalloc, or set further o
You can install such custom port as:
```sh
$ vcpkg install mimalloc[override] --recurse --overlay-ports=./contrib/vcpkg
$ vcpkg install "mimalloc[override]" --recurse --overlay-ports=./contrib/vcpkg
```
This will also show the correct sha512 hash if you use a custom version.

View file

@ -17,4 +17,5 @@ endif()
if(TARGET mimalloc-static AND NOT TARGET mimalloc)
add_library(mimalloc INTERFACE IMPORTED)
set_target_properties(mimalloc PROPERTIES INTERFACE_LINK_LIBRARIES mimalloc-static)
set_target_properties(mimalloc PROPERTIES INTERFACE_INCLUDE_DIRECTORIES mimalloc-static)
endif()