Skip to content

Commit dad7a4c

Browse files
committed
cmake: link examples with -Wl,--no-undefined
1 parent 8537559 commit dad7a4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ if(SDLTTF_SAMPLES)
552552
add_executable(${TARGET} ${ARGN})
553553
endif()
554554
sdl_add_warning_options(${TARGET} WARNING_AS_ERROR ${SDLTTF_WERROR})
555+
sdl_target_link_options_no_undefined(${TARGET})
555556
target_link_libraries(${TARGET} PRIVATE SDL3_ttf::${sdl3_ttf_target_name})
556557
target_link_libraries(${TARGET} PRIVATE ${sdl3_target_name})
557558
if("c_std_99" IN_LIST CMAKE_C_COMPILE_FEATURES)

0 commit comments

Comments
 (0)