Skip to content

Commit 68d4471

Browse files
committed
added sanitezrs and warnings
1 parent d40f20e commit 68d4471

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.28)
22

33
add_executable(cli_app main.cpp)
4-
target_link_libraries(cli_app PRIVATE warnings)
4+
target_link_libraries(cli_app PRIVATE warnings sanitizers)
55
set_target_properties(
66
cli_app
77
PROPERTIES CXX_STANDARD 23
@@ -12,7 +12,7 @@ set_target_properties(
1212
install(TARGETS cli_app RUNTIME DESTINATION bin COMPONENT runtime)
1313

1414
add_library(sdl_app SHARED sdl_main.cpp)
15-
target_link_libraries(sdl_app PRIVATE SDL3::SDL3-shared)
15+
target_link_libraries(sdl_app PRIVATE SDL3::SDL3-shared warnings sanitizers)
1616

1717
install(
1818
TARGETS sdl_app

src/sdl_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <cstdlib>
55

6-
int main(int argc, char* argv[])
6+
int main()
77
{
88
if (!SDL_Init(SDL_INIT_EVENTS | SDL_INIT_VIDEO))
99
{

0 commit comments

Comments
 (0)