Commit bcc6db00 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Only add the -Werror on Linux

On Windows, this messes up the build system for some reason... It
breaks the call to winres!

BUG:380482
parent aca3589c
......@@ -61,8 +61,10 @@ if (APPLE)
add_definitions(-mmacosx-version-min=10.9 -Wno-macro-redefined -Wno-deprecated-register)
endif()
if (CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
add_definitions(-Werror=delete-incomplete)
if (LINUX)
if (CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9 AND NOT WINDOWS)
add_definitions(-Werror=delete-incomplete)
endif()
endif()
######################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment