Add destructors
This commit is contained in:
@ -4,6 +4,12 @@ set(REFCOUNT_USE_THREADS
|
||||
ON
|
||||
CACHE BOOL "Weather or not RefCount should be thread aware.")
|
||||
|
||||
if(REFCOUNT_USE_THREADS)
|
||||
message("Building with thread support, setting CMAKE_C_STANDARD to 11.")
|
||||
else()
|
||||
message("Building without thread support, setting CMAKE_C_STANDARD to 99.")
|
||||
endif()
|
||||
|
||||
if(REFCOUNT_USE_THREADS)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
else()
|
||||
@ -22,7 +28,7 @@ include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
ht
|
||||
GIT_REPOSITORY https://git.zander.im/Zander671/ht.git
|
||||
GIT_TAG 9a1b271cfdc8ab203f9d6aa6a83cc4523de422be)
|
||||
GIT_TAG c6bdb38bb77d45f9d5083706723c84c37db56c9c)
|
||||
|
||||
FetchContent_MakeAvailable(ht)
|
||||
|
||||
@ -30,8 +36,8 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||
include(CTest)
|
||||
endif()
|
||||
|
||||
# add_compile_options(-fsanitize=address,leak,undefined)
|
||||
# add_link_options(-fsanitize=address,leak,undefined)
|
||||
add_compile_options(-fsanitize=address,leak,undefined)
|
||||
add_link_options(-fsanitize=address,leak,undefined)
|
||||
|
||||
configure_file(include/refcount/config.h.in include/refcount/config.h @ONLY)
|
||||
|
||||
|
Reference in New Issue
Block a user