Browse Source

fix(windows): remove windows build path warning

GitOrigin-RevId: d6e255b7dc
tags/v1.3.1
Megvii Engine Team 4 years ago
parent
commit
63cc5743ca
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      CMakeLists.txt

+ 1
- 0
CMakeLists.txt View File

@@ -165,6 +165,7 @@ endif()
if(MSVC OR WIN32) if(MSVC OR WIN32)
# for cmake after 3.15.2 # for cmake after 3.15.2
cmake_policy(SET CMP0091 NEW) cmake_policy(SET CMP0091 NEW)
set(CMAKE_OBJECT_PATH_MAX 300)
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug") set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug")
else() else()


Loading…
Cancel
Save