Skip to content

Commit

Permalink
add INTERFACE_INCLUDE_DIRECTORIES to vckpcg wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Jan 14, 2025
1 parent af602df commit bd8cdc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/vcpkg/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions contrib/vcpkg/vcpkg-cmake-wrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit bd8cdc9

Please sign in to comment.