From 71c1be8de0a96996fd1d25123c6c9a07bcbbbe22 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Wed, 10 Mar 2021 00:30:38 -0500 Subject: [PATCH] Guard BUILD_SMALL_DEBUG_FILES away for MSVC --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b7956f7a7..acc730e5e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ set( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeModules ) # and more than 3Gb for the full kicad suite) # This option create binaries using link option -g1 that create much smaller files, but # there are less info in debug (but the file names and line numbers are available) -option( BUILD_SMALL_DEBUG_FILES "In debug build: create smaller binaries." OFF ) +cmake_dependent_option( BUILD_SMALL_DEBUG_FILES "In debug build: create smaller binaries." OFF "NOT MSVC" OFF ) #