clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user