|
@@ -46,7 +46,11 @@ if(UNIX)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
|
|
endif()
|
|
endif()
|
|
elseif(WIN32)
|
|
elseif(WIN32)
|
|
- set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-Wall" "-Werror")
|
|
|
|
|
|
+ if (${CMAKE_CXX_COMPILER_ID} MATCHES "MSVC")
|
|
|
|
+ set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "/WX /W4")
|
|
|
|
+ else()
|
|
|
|
+ message(WARNING "Only MSVC compilers family is supported for build")
|
|
|
|
+ endif()
|
|
endif()
|
|
endif()
|
|
|
|
|
|
if(Qt5_POSITION_INDEPENDENT_CODE)
|
|
if(Qt5_POSITION_INDEPENDENT_CODE)
|