diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-06-06 14:53:24 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-06-06 14:53:24 +1000 |
commit | a01968c3b090db55cc36cccc0eb8ded54ff1de6f (patch) | |
tree | a0f2193160358dd2ca9af74d7ebf7081b3e90688 /source/CMakeLists.txt | |
parent | 214c8c939f377abed795cf6d66929e3a07c6820c (diff) |
fetch jemalloc from vcpkg
Diffstat (limited to 'source/CMakeLists.txt')
-rw-r--r-- | source/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 131c6ad..db36cd6 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -457,11 +457,14 @@ endif() # Find all required external libraries, based on build settings... + + + if(STAR_USE_JEMALLOC) - # Assumes jemalloc was configured with a "je_" function prefix - find_package(JeMalloc REQUIRED) + find_package(PkgConfig) + pkg_check_modules(JEMALLOC REQUIRED jemalloc) - include_directories(SYSTEM ${JEMALLOC_INCLUDE_DIR}) + include_directories(SYSTEM ${JEMALLOC_INCLUDE_DIRS}) set(STAR_EXT_LIBS ${JEMALLOC_LIBRARY}) endif() |