set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)

This commit is contained in:
mutouyun 2021-08-15 13:33:01 +08:00
parent 3c7e94a167
commit e47902d13b

View File

@ -38,6 +38,7 @@ add_subdirectory(src)
if (LIBIPC_BUILD_TESTS) if (LIBIPC_BUILD_TESTS)
set(GOOGLETEST_VERSION 1.10.0) set(GOOGLETEST_VERSION 1.10.0)
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
set(gtest_force_shared_crt $<NOT:$<BOOL:${LIBIPC_USE_STATIC_CRT}>>) set(gtest_force_shared_crt $<NOT:$<BOOL:${LIBIPC_USE_STATIC_CRT}>>)
add_subdirectory(3rdparty/gtest) add_subdirectory(3rdparty/gtest)
add_subdirectory(test) add_subdirectory(test)