clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors
This commit is contained in:
@@ -75,6 +75,9 @@ endif()
|
||||
|
||||
add_library(MeshPart SHARED ${MeshPart_SRCS} ${MeshPart_Scripts})
|
||||
target_link_libraries(MeshPart ${MeshPart_LIBS})
|
||||
if (FREECAD_WARN_ERROR)
|
||||
target_compile_warn_error(MeshPart)
|
||||
endif()
|
||||
|
||||
|
||||
fc_target_copy_resource_flat(MeshPart
|
||||
|
||||
@@ -81,6 +81,9 @@ endif(FREECAD_USE_PCH)
|
||||
|
||||
add_library(MeshPartGui SHARED ${MeshPartGui_SRCS} ${MeshPartGui_Scripts} ${FLATMESH_PY_SRCS})
|
||||
target_link_libraries(MeshPartGui ${MeshPartGui_LIBS})
|
||||
if (FREECAD_WARN_ERROR)
|
||||
target_compile_warn_error(MeshPartGui)
|
||||
endif()
|
||||
|
||||
|
||||
SET_BIN_DIR(MeshPartGui MeshPartGui /Mod/MeshPart)
|
||||
|
||||
Reference in New Issue
Block a user