Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ endif()
option(PIPE_BUILD_SHARED "Build shared libraries" ON)
option(PIPE_BUILD_TESTS "Build Pipe tests" ${PIPE_IS_PROJECT})
option(PIPE_ENABLE_ALLOCATION_STACKS "Should allocation call stacks be tracked?" OFF)
option(PIPE_OVERRIDE_NEWDELETE "Should pipe's compilation unit override new/delete" ON)
option(PIPE_BUILD_WARNINGS "Enable compiler warnings" OFF)
option(PIPE_ENABLE_CLANG_TOOLS "Enable clang-tidy and clang-format" ${PIPE_IS_PROJECT})

Expand Down Expand Up @@ -69,6 +70,10 @@ if(PIPE_ENABLE_ALLOCATION_STACKS)
target_compile_definitions(Pipe PUBLIC P_ENABLE_ALLOCATION_STACKS=0)
endif()

if(PIPE_OVERRIDE_NEWDELETE)
target_compile_definitions(Pipe PUBLIC P_OVERRIDE_NEWDELETE=1)
endif()

pipe_target_enable_CPP20(Pipe)
pipe_add_sanitizers(Pipe)
pipe_target_shared_output_directory(Pipe)
Expand Down
Loading
Loading