mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
Set debuginfo to Z7 and use latest available Windows SDK
This commit is contained in:
parent
7d9841d833
commit
5cad3ebfef
1 changed files with 16 additions and 0 deletions
|
|
@ -40,6 +40,22 @@ if(ENABLE_BUILD_VERBOSE)
|
|||
message("User Args : ${USER_ARGS}")
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0149)
|
||||
# VS generator looks for most recent Windows SDK, ignoring
|
||||
# CMAKE_SYSTEM_VERSION and allowing override by WindowsSDKVersion
|
||||
# environment variable. New in 3.27. This is to allow override
|
||||
# in the Windows CI builds.
|
||||
# This MUST be set before any project() or or enable_language() command.
|
||||
cmake_policy(SET CMP0149 NEW)
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0141)
|
||||
# Changes the way debug info on Windows are stored (forces /Z7)
|
||||
# This is a requirement to use build cache on Windows, since /Zi is another Microsoft cache, incompatible with any third party cache known to date
|
||||
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded)
|
||||
cmake_policy(SET CMP0141 NEW)
|
||||
endif()
|
||||
|
||||
project(linphoneqt)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue