mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-01-14 16:47:59 +08:00
make sure older cmake versions work for build
This commit is contained in:
parent
adf65a100e
commit
a6aa905731
@ -162,10 +162,12 @@ target_include_directories(mimalloc-obj PUBLIC
|
|||||||
$<INSTALL_INTERFACE:${mi_install_dir}/include>
|
$<INSTALL_INTERFACE:${mi_install_dir}/include>
|
||||||
)
|
)
|
||||||
|
|
||||||
# seems to lead to cmake warnings/errors on some systems, disable for now :-(
|
# the following seems to lead to cmake warnings/errors on some systems, disable for now :-(
|
||||||
# install(TARGETS mimalloc-obj EXPORT mimalloc DESTINATION ${mi_install_dir})
|
# install(TARGETS mimalloc-obj EXPORT mimalloc DESTINATION ${mi_install_dir})
|
||||||
|
|
||||||
install(FILES $<TARGET_OBJECTS:mimalloc-obj>
|
# the FILES expression can also be: $<TARGET_OBJECTS:mimalloc-obj>
|
||||||
|
# but that fails cmake versions less than 3.10 so we leave it as is for now
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/mimalloc-obj.dir/src/static.c${CMAKE_C_OUTPUT_EXTENSION}
|
||||||
DESTINATION ${mi_install_dir}
|
DESTINATION ${mi_install_dir}
|
||||||
RENAME ${mi_basename}${CMAKE_C_OUTPUT_EXTENSION} )
|
RENAME ${mi_basename}${CMAKE_C_OUTPUT_EXTENSION} )
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user