cmake: fix cmake error on Apple

This commit is contained in:
Yuhang Zhao 2023-06-20 11:07:38 +08:00
parent b7556d467e
commit 86a9b85d04
2 changed files with 5 additions and 1 deletions

View File

@ -111,6 +111,10 @@ if(MSVC)
if(FRAMELESSHELPER_ENABLE_VCLTL)
include(cmake/VC-LTL.cmake)
if("x${SupportLTL}" STREQUAL "xtrue")
# Make sure we will always overwrite the previous settings.
unset(CMAKE_MSVC_RUNTIME_LIBRARY)
unset(CMAKE_MSVC_RUNTIME_LIBRARY CACHE)
#unset(CMAKE_MSVC_RUNTIME_LIBRARY PARENT_SCOPE)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" CACHE STRING "" FORCE)
endif()
endif()

2
cmake

@ -1 +1 @@
Subproject commit 05bb66276192725e0f581fe8b358587ec6cbeefd
Subproject commit ea37ad2a4bc0f6738387af8a1f1d980acc385c37