Skip to content

Commit

Permalink
fix: use -Wall -WX on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
RaisinTen committed Oct 19, 2022
1 parent 687cc56 commit fdb73d4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/CMakeLists.txt
@@ -1,8 +1,13 @@
cmake_minimum_required(VERSION 3.9)
set(CMAKE_CXX_STANDARD 11)

set(CMAKE_CXX_FLAGS "-Wall -Werror")
set(CMAKE_C_FLAGS "-Wall -Werror")
if(WIN32)
set(CMAKE_CXX_FLAGS "-Wall -WX")
set(CMAKE_C_FLAGS "-Wall -WX")
else()
set(CMAKE_CXX_FLAGS "-Wall -Werror")
set(CMAKE_C_FLAGS "-Wall -Werror")
endif()

project(postject-tests)

Expand Down

0 comments on commit fdb73d4

Please sign in to comment.