clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors
This commit is contained in:
@@ -38,6 +38,9 @@ endif(FREECAD_USE_PCH)
|
||||
|
||||
add_library(Inspection SHARED ${Inspection_SRCS} ${Inspection_Scripts})
|
||||
target_link_libraries(Inspection ${Inspection_LIBS})
|
||||
if (FREECAD_WARN_ERROR)
|
||||
target_compile_warn_error(Inspection)
|
||||
endif()
|
||||
|
||||
fc_target_copy_resource_flat(Inspection
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
|
||||
@@ -57,6 +57,9 @@ SET(InspectionGuiIcon_SVG
|
||||
|
||||
add_library(InspectionGui SHARED ${InspectionGui_SRCS} ${InspectionGui_Scripts} ${InspectionGuiIcon_SVG})
|
||||
target_link_libraries(InspectionGui ${InspectionGui_LIBS})
|
||||
if (FREECAD_WARN_ERROR)
|
||||
target_compile_warn_error(InspectionGui)
|
||||
endif()
|
||||
|
||||
|
||||
fc_target_copy_resource_flat(InspectionGui
|
||||
|
||||
Reference in New Issue
Block a user