Enable warning as error for Windows

This commit is contained in:
litghost 2013-09-24 09:23:56 -07:00 • committed by Keith Rothman
commit 8ce20e2e58

View file

@ -108,8 +108,7 @@ endif("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR
# MS Visual Studio
###############################
if(MSVC)
# Cannot enable /WX on Windows build just yet, lots of warnings
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
endif(MSVC)
################################################################################