vcpkg/ports/mimalloc/vcpkg-cmake-wrapper.cmake
myd7349 3c418f814d [mimalloc] Add new port (fix ) ()
* [mimalloc] Add new port (fix )

* [mimalloc] Fix x64-uwp build error

* [mimalloc] Fix interface include directory

* [mimalloc] Add features

* [mimalloc] Make the patch vcpkg friendly

* [mimalloc] Update to 2019-06-25

* [mimalloc] Use vcpkg_check_features

* [mimalloc] Clean
2019-07-22 11:16:02 -07:00

10 lines
420 B
CMake

_find_package(${ARGS})
if(TARGET mimalloc AND NOT TARGET mimalloc-static)
add_library(mimalloc-static INTERFACE IMPORTED)
set_target_properties(mimalloc-static PROPERTIES INTERFACE_LINK_LIBRARIES mimalloc)
elseif(TARGET mimalloc-static AND NOT TARGET mimalloc)
add_library(mimalloc INTERFACE IMPORTED)
set_target_properties(mimalloc PROPERTIES INTERFACE_LINK_LIBRARIES mimalloc-static)
endif()