Skip to content

Commit

Permalink
cmake: Add linker option to warn unresolved references
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro committed Dec 27, 2023
1 parent abfa34c commit 4aadd1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ endif()

if(OS_LINUX)
target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -Wall -Wextra)
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE "-Wl,-z,defs")
endif()

if(APPLE)
Expand Down

0 comments on commit 4aadd1f

Please sign in to comment.