Build: Add WITH_WARNINGS_AS_ERRORS cmake option that turns compile warnings into compile errors

This commit is contained in:
Shauren
2024-09-20 13:19:42 +02:00
parent 24d08307e4
commit 7ac0c685dd
15 changed files with 54 additions and 62 deletions

View File

@@ -38,9 +38,9 @@ target_include_directories(mapextractor
${CMAKE_CURRENT_BINARY_DIR})
set_target_properties(mapextractor
PROPERTIES
FOLDER
"tools")
PROPERTIES
COMPILE_WARNING_AS_ERROR ${WITH_WARNINGS_AS_ERRORS}
FOLDER "tools")
if(UNIX)
install(TARGETS mapextractor DESTINATION bin)