Open tkohlman opened 2 months ago
install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir} NAMESPACE mimalloc::)
add_library(mimalloc::mimalloc-obj ALIAS mimalloc-obj) add_library(mimalloc::mimalloc-static ALIAS mimalloc-static)
add_library(mimalloc::mimalloc-obj ALIAS mimalloc-obj)
add_library(mimalloc::mimalloc-static ALIAS mimalloc-static)
Thank you for the feedback; I'm not a cmake expert and don't know what the NAMESPACE does? Would adding this be backward compatible or is there a chance of breaking existing build scripts that people have?
Add namespace to installed export
install(EXPORT mimalloc DESTINATION ${mi_install_cmakedir} NAMESPACE mimalloc::)
Add alias targets to provide consistent targets for submodule builds.
add_library(mimalloc::mimalloc-obj ALIAS mimalloc-obj)
add_library(mimalloc::mimalloc-static ALIAS mimalloc-static)