Fixed MSVC builds

This commit is contained in:
SChernykh
2024-02-11 17:08:28 +01:00
parent 6263c0bbda
commit 3327e7f54a
5 changed files with 18 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Os -w")
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
if ((CMAKE_C_COMPILER_ID MATCHES MSVC) OR (CMAKE_CXX_COMPILER_ID MATCHES MSVC))
include_directories(external/src/common)
endif()