chore: remove WARNINGS_AS_ERRORS
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
2a5d291bd9
commit
d7d2d9f612
@ -39,7 +39,6 @@ endfunction()
|
||||
function(
|
||||
set_project_warnings
|
||||
_project_name
|
||||
WARNINGS_AS_ERRORS
|
||||
MSVC_WARNINGS
|
||||
CLANG_WARNINGS
|
||||
GCC_WARNINGS
|
||||
@ -105,14 +104,6 @@ function(
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
if(WARNINGS_AS_ERRORS)
|
||||
message(TRACE "Warnings are treated as errors")
|
||||
list(APPEND CLANG_WARNINGS -Werror)
|
||||
list(APPEND GCC_WARNINGS -Werror)
|
||||
list(APPEND MSVC_WARNINGS /WX)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set(PROJECT_WARNINGS_CXX ${MSVC_WARNINGS})
|
||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
|
||||
|
@ -1095,7 +1095,6 @@ include(CompilerWarnings)
|
||||
# Add executable
|
||||
add_library(Launcher_logic STATIC ${LOGIC_SOURCES} ${LAUNCHER_SOURCES} ${LAUNCHER_UI} ${LAUNCHER_RESOURCES})
|
||||
set_project_warnings(Launcher_logic
|
||||
"${WARNINGS_AS_ERRORS}"
|
||||
"${Launcher_MSVC_WARNINGS}"
|
||||
"${Launcher_CLANG_WARNINGS}"
|
||||
"${Launcher_GCC_WARNINGS}")
|
||||
@ -1178,7 +1177,6 @@ install(TARGETS ${Launcher_Name}
|
||||
if(WIN32)
|
||||
add_library(filelink_logic STATIC ${LINKEXE_SOURCES})
|
||||
set_project_warnings(filelink_logic
|
||||
"${WARNINGS_AS_ERRORS}"
|
||||
"${Launcher_MSVC_WARNINGS}"
|
||||
"${Launcher_CLANG_WARNINGS}"
|
||||
"${Launcher_GCC_WARNINGS}")
|
||||
|
Loading…
Reference in New Issue
Block a user