mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
jemalloc: fix includes order to avoid overlaps
If you had jemalloc build in contrib/jemalloc, and not current version but some outdated, then compiler will pick incorrect file and may fail. Also SYSTEM should be removed since regular -I is in the different list, and will be checked before -isystem. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
6280efc0eb
commit
01583ba10e
@ -117,8 +117,11 @@ if (OS_DARWIN)
|
||||
endif ()
|
||||
|
||||
add_library(_jemalloc ${SRCS})
|
||||
# First include jemalloc-cmake files, to override anything that jemalloc has.
|
||||
# (for example if you were trying to build jemalloc inside contrib/jemalloc you
|
||||
# will have some files that may be out of date)
|
||||
target_include_directories(_jemalloc PUBLIC include)
|
||||
target_include_directories(_jemalloc PRIVATE "${LIBRARY_DIR}/include")
|
||||
target_include_directories(_jemalloc SYSTEM PUBLIC include)
|
||||
|
||||
set (JEMALLOC_INCLUDE_PREFIX)
|
||||
# OS_
|
||||
|
Loading…
Reference in New Issue
Block a user