clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors

This commit is contained in:
wmayer
2024-05-29 13:12:17 +02:00
committed by wwmayer
parent 8ac14f83c6
commit 560cab6f31
52 changed files with 172 additions and 7 deletions

View File

@@ -57,6 +57,9 @@ endif(FREECAD_USE_PCH)
add_library(Spreadsheet SHARED ${Spreadsheet_SRCS})
target_link_libraries(Spreadsheet ${Spreadsheet_LIBS})
if (FREECAD_WARN_ERROR)
target_compile_warn_error(Spreadsheet)
endif()
SET_BIN_DIR(Spreadsheet Spreadsheet /Mod/Spreadsheet)

View File

@@ -110,6 +110,9 @@ set(SpreadsheetGui_UIC_SRCS
add_library(SpreadsheetGui SHARED ${SpreadsheetGui_SRCS} ${SpreadsheetGuiIcon_SVG})
target_link_libraries(SpreadsheetGui ${SpreadsheetGui_LIBS})
if (FREECAD_WARN_ERROR)
target_compile_warn_error(SpreadsheetGui)
endif()
SET_BIN_DIR(SpreadsheetGui SpreadsheetGui /Mod/Spreadsheet)
SET_PYTHON_PREFIX_SUFFIX(SpreadsheetGui)