Skip to content

Commit

Permalink
[ci] Do not enable /MTd if we are building tests, it is only for the …
Browse files Browse the repository at this point in the history
…externals themselves
  • Loading branch information
jcelerier committed Sep 24, 2023
1 parent 4bb5103 commit d77e374
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/OssiaOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,10 @@ if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)

if(OSSIA_MAX OR OSSIA_PD OR OSSIA_JAVA OR OSSIA_UNITY3D OR OSSIA_PYTHON)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
if(NOT OSSIA_TESTING AND NOT OSSIA_EXAMPLES)
if(OSSIA_MAX OR OSSIA_PD OR OSSIA_JAVA OR OSSIA_UNITY3D OR OSSIA_PYTHON)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
endif()
endif()

Expand Down

0 comments on commit d77e374

Please sign in to comment.