[buildcore] Add support for MSVC

This commit is contained in:
2022-03-12 11:50:21 -06:00
parent 6e51c221af
commit 399f117eab
3 changed files with 13 additions and 1 deletions

View File

@ -31,7 +31,9 @@ else()
endif()
endif()
if(NOT MSVC)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:preprocessor")
else()
# forces colored output when using ninja
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color")
# enable warnings