mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-05 21:22:07 +02:00
Apply suggestions from code review
Co-authored-by: Dale Glass <51060919+daleglass@users.noreply.github.com>
This commit is contained in:
parent
e6f462e04a
commit
2ae2f29b29
1 changed files with 4 additions and 4 deletions
|
@ -185,11 +185,11 @@ endif()
|
|||
|
||||
if(OVERTE_WARNINGS_AS_ERRORS)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC" OR (CMAKE_CXX_COMPILER_ID MATCHES "" AND WIN32))
|
||||
set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} /WX")
|
||||
set(ENV{CFLAGS} "$ENV{CXXFLAGS} /WX")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX")
|
||||
set(CMAKE_CFLAGS "${CMAKE_CFLAGS} /WX")
|
||||
else()
|
||||
set(ENV{CXXFLAGS} "$ENV{CXXFLAGS} -Werror")
|
||||
set(ENV{CFLAGS} "$ENV{CXXFLAGS} -Werror")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
||||
set(CMAKE_CFLAGS "${CMAKE_CFLAGS} -Werror")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue