Skip to content

Commit

Permalink
CISTA_USE_MIMALLOC cmake option
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jan 18, 2023
1 parent 9fa09ea commit be0182a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ endif()
option(CISTA_ZERO_OUT "zero out fresh memory for valgrind" OFF)
option(CISTA_COVERAGE "generate coverage report" OFF)
option(CISTA_GENERATE_TO_TUPLE "generate include/cista/reflection/to_tuple.h" OFF)
option(CISTA_USE_MIMALLOC "compile with mimalloc support" OFF)
set(CISTA_HASH "FNV1A" CACHE STRING "Options: FNV1A XXH3 WYHASH WYHASH_FASTEST")

add_library(cista INTERFACE)
Expand All @@ -52,6 +53,9 @@ target_compile_definitions(cista INTERFACE CISTA_${CISTA_HASH}=1)
if (CISTA_ZERO_OUT)
target_compile_definitions(cista INTERFACE CISTA_ZERO_OUT=1)
endif()
if (CISTA_USE_MIMALLOC)
target_compile_definitions(cista INTERFACE CISTA_USE_MIMALLOC=1)
endif()
target_include_directories(cista SYSTEM INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
Expand Down

0 comments on commit be0182a

Please sign in to comment.