7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-11 14:40:11 +00:00

Add policy for CMAKE_MSVC_DEBUG_INFORMATION_FORMAT

This commit is contained in:
Mark Roszko 2024-05-07 18:35:30 +00:00
parent e1f6d82a34
commit d3f69a11f2

View File

@ -31,6 +31,11 @@ cmake_policy( SET CMP0116 OLD )
# The current structure requires the add_custom_command to get called twice, the NEW behavior deduplicates it
cmake_policy( SET CMP0113 OLD )
# Enable CMAKE_MSVC_DEBUG_INFORMATION_FORMAT to override the cmake pdb flags easily
if (POLICY CMP0141)
cmake_policy(SET CMP0141 NEW)
endif (POLICY CMP0141)
# Default to CMAKE_BUILD_TYPE = Release unless overridden on command line
# http://www.cmake.org/pipermail/cmake/2008-September/023808.html
if( DEFINED CMAKE_BUILD_TYPE )