clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors
This commit is contained in:
@@ -197,6 +197,9 @@ endif(FREECAD_USE_PCH)
|
||||
|
||||
add_library(Fem SHARED ${Fem_SRCS})
|
||||
target_link_libraries(Fem ${Fem_LIBS} ${VTK_LIBRARIES})
|
||||
if (FREECAD_WARN_ERROR)
|
||||
target_compile_warn_error(Fem)
|
||||
endif()
|
||||
|
||||
find_package(OpenMP 4.0)
|
||||
if(OpenMP_CXX_FOUND)
|
||||
|
||||
@@ -369,6 +369,9 @@ SET(FemGuiSymbol_IV
|
||||
|
||||
add_library(FemGui SHARED ${FemGui_SRCS} ${FemGuiIcon_SVG} ${FemGuiSymbol_IV})
|
||||
target_link_libraries(FemGui ${FemGui_LIBS} ${VTK_LIBRARIES})
|
||||
if (FREECAD_WARN_ERROR)
|
||||
target_compile_warn_error(FemGui)
|
||||
endif()
|
||||
|
||||
fc_copy_sources(FemGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Fem" ${FemGuiIcon_SVG})
|
||||
fc_copy_sources(FemGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Fem" ${FemGuiSymbol_IV})
|
||||
|
||||
Reference in New Issue
Block a user