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

@@ -87,6 +87,9 @@ generate_from_xml(StepShapePy)
add_library(Import SHARED ${Import_SRCS})
target_link_libraries(Import ${Import_LIBS})
if (FREECAD_WARN_ERROR)
target_compile_warn_error(Import)
endif()
ADD_CUSTOM_TARGET(ImportPy ALL
SOURCES ${SCL_Resources}

View File

@@ -39,6 +39,9 @@ SET(ImportGui_SRCS
add_library(ImportGui SHARED ${ImportGui_SRCS})
target_link_libraries(ImportGui ${ImportGui_LIBS})
if (FREECAD_WARN_ERROR)
target_compile_warn_error(ImportGui)
endif()
SET_BIN_DIR(ImportGui ImportGui /Mod/Import)