clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors
This commit is contained in:
@@ -43,6 +43,9 @@ SET(Start_SRCS
|
||||
|
||||
add_library(Start SHARED ${Start_SRCS})
|
||||
target_link_libraries(Start ${Start_LIBS})
|
||||
if (FREECAD_WARN_ERROR)
|
||||
target_compile_warn_error(Start)
|
||||
endif()
|
||||
|
||||
SET_BIN_DIR(Start Start /Mod/Start)
|
||||
SET_PYTHON_PREFIX_SUFFIX(Start)
|
||||
|
||||
@@ -91,6 +91,9 @@ endif (FREECAD_USE_PCH)
|
||||
add_library(StartGui SHARED ${StartGui_SRCS} ${StartGuiIcon_SVG} ${StartGuiThumbnail_PNG})
|
||||
# target_link_libraries(StartGui ${StartGui_LIBS} Qt::Quick Qt::Qml Qt::QuickWidgets)
|
||||
target_link_libraries(StartGui ${StartGui_LIBS})
|
||||
if (FREECAD_WARN_ERROR)
|
||||
target_compile_warn_error(StartGui)
|
||||
endif()
|
||||
|
||||
SET_BIN_DIR(StartGui StartGui /Mod/Start)
|
||||
SET_PYTHON_PREFIX_SUFFIX(StartGui)
|
||||
|
||||
Reference in New Issue
Block a user