Add NO_SYSTEM_ENVIRONMENT_PATH and example of linking with the object file; pr #67

This commit is contained in:
daan 2019-07-08 13:37:41 -07:00
parent 56bdb2c2f3
commit fc35f6069a
2 changed files with 17 additions and 7 deletions

View file

@ -162,6 +162,8 @@ target_include_directories(mimalloc-obj PUBLIC
$<INSTALL_INTERFACE:${mi_install_dir}/include>
)
install(TARGETS mimalloc-obj EXPORT mimalloc DESTINATION ${mi_install_dir})
install(FILES $<TARGET_OBJECTS:mimalloc-obj>
DESTINATION ${mi_install_dir}
RENAME ${mi_basename}${CMAKE_C_OUTPUT_EXTENSION} )