From 7ac3a189a0763c6cc0aa141e714d34c4abc27c2b Mon Sep 17 00:00:00 2001 From: "Anthony J. Thibault" Date: Wed, 26 Oct 2016 17:48:28 -0700 Subject: [PATCH] generate pdb files for plugins as well I'm going to coordinate with marco to ensure that these pdb files are uploaded to bugsplat as well. It will make hard to reproduce crashes in display plugins easier to diagnose in the future. --- cmake/macros/SetupHifiPlugin.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/macros/SetupHifiPlugin.cmake b/cmake/macros/SetupHifiPlugin.cmake index e9c8688590..0db91cb9e6 100644 --- a/cmake/macros/SetupHifiPlugin.cmake +++ b/cmake/macros/SetupHifiPlugin.cmake @@ -17,6 +17,12 @@ macro(SETUP_HIFI_PLUGIN) set(PLUGIN_PATH "plugins") endif() + if (WIN32) + # produce PDB files for plugins as well + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi") + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DEBUG") + endif() + if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_GENERATOR STREQUAL "Unix Makefiles") set(PLUGIN_FULL_PATH "${CMAKE_BINARY_DIR}/interface/${PLUGIN_PATH}/") else()