diff --git a/cmake/Jemalloc.cmake b/cmake/Jemalloc.cmake index 1ad7e07249..e2ca64f7cf 100644 --- a/cmake/Jemalloc.cmake +++ b/cmake/Jemalloc.cmake @@ -14,8 +14,8 @@ if(NOT WIN32) if(JEMALLOC_INCLUDE_DIR AND JEMALLOC AND JEMALLOC_PIC) set_target_properties(im_jemalloc_pic PROPERTIES IMPORTED_LOCATION "${JEMALLOC_PIC}") set_target_properties(im_jemalloc PROPERTIES IMPORTED_LOCATION "${JEMALLOC}") - target_include_directories(jemalloc PUBLIC "${JEMALLOC_INCLUDE_DIR}") - target_link_libraries(jemalloc PUBLIC im_jemalloc im_jemalloc_pic) + target_include_directories(jemalloc INTERFACE "${JEMALLOC_INCLUDE_DIR}") + target_link_libraries(jemalloc INTERFACE im_jemalloc im_jemalloc_pic) else() include(ExternalProject) set(JEMALLOC_DIR "${CMAKE_BINARY_DIR}/jemalloc")