From 25bf695b771c21f1ec0c5b8929405db6518dde15 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Mon, 18 May 2020 16:43:14 -0500 Subject: [PATCH] updated cmake to include library for Windows demangling --- gtsam/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtsam/CMakeLists.txt b/gtsam/CMakeLists.txt index 1079b845f..cabd5e402 100644 --- a/gtsam/CMakeLists.txt +++ b/gtsam/CMakeLists.txt @@ -172,6 +172,10 @@ if(WIN32) # Add 'lib' prefix to static library to avoid filename collision with endif() endif() +if(WIN32) # library to help with demangling variable names on Windows + target_link_libraries(gtsam PRIVATE Dbghelp) +endif() + install( TARGETS gtsam EXPORT GTSAM-exports