summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-05-09 09:43:34 -0400
committerrealtradam <[email protected]>2023-05-09 09:43:34 -0400
commita4314fafa69cacaa247277b7da8a647c34c4ede3 (patch)
treea6f142641f8a99a135bf84bc0783222b02ed8d76 /CMakeLists.txt
parent2709a71f46acb65535a8ee871a352d2ff1fb82df (diff)
downloadRodeoKit-a4314fafa69cacaa247277b7da8a647c34c4ede3.tar.gz
RodeoKit-a4314fafa69cacaa247277b7da8a647c34c4ede3.zip
audio progress
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fbd4e7a..7fe7c04 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -100,13 +100,19 @@ elseif(DEFINED UNIX AND NOT DEFINED APPLE)
add_subdirectory(external/SDL_image)
add_subdirectory(external/SDL_mixer)
+if(${CMAKE_BUILD_TYPE} EQUAL Debug)
target_compile_options(${PROJECT_NAME}
PRIVATE -Wall
PRIVATE -Wextra
PRIVATE -Wpedantic
#PRIVATE -Werror
PRIVATE -Wconversion
+ PUBLIC -fsanitize=address,undefined,leak
)
+ target_link_options(${PROJECT_NAME}
+ PUBLIC -fsanitize=address,undefined,leak
+ )
+endif()
ExternalProject_Add(project_bgfx
#BUILD_IN_SOURCE true # this just doesn't work