fix cmake issues with OBJECT install

This commit is contained in:
daan 2019-07-09 11:32:24 -07:00
parent 76023ca45f
commit cf8815854c
3 changed files with 6 additions and 4 deletions

View file

@ -162,7 +162,8 @@ target_include_directories(mimalloc-obj PUBLIC
$<INSTALL_INTERFACE:${mi_install_dir}/include>
)
install(TARGETS mimalloc-obj EXPORT mimalloc DESTINATION ${mi_install_dir})
# seems to lead to cmake warnings/errors on some systems, disable for now :-(
# install(TARGETS mimalloc-obj EXPORT mimalloc DESTINATION ${mi_install_dir})
install(FILES $<TARGET_OBJECTS:mimalloc-obj>
DESTINATION ${mi_install_dir}