Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
feat: Adjust compilation to the latest changes in the API
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kurbatov <sir.alkurbatov@yandex.ru>
  • Loading branch information
alkurbatov committed Sep 19, 2022
1 parent 26415cc commit 6c997ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ set(BUILD_API_TESTS OFF CACHE INTERNAL "" FORCE)
find_package(GTest REQUIRED)
include_directories(${GTEST_INCLUDE_DIRS})

if (MSVC)
# Setup MSVC parallelized builds.
add_compile_options(/MP)

# Use statically linked runtime.
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$<CONFIG:Debug>:Debug>)
endif ()

add_subdirectory("cpp-sc2")
add_subdirectory("src")
add_subdirectory("test")

0 comments on commit 6c997ec

Please sign in to comment.