summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-15 13:10:03 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-15 13:10:03 (GMT)
commit23b3ca5e1f599d05e822b651a09bb8b9e0df6240 (patch)
treeac1042f61ae049994653350d28d85f053f05ab45 /Source/kwsys/CMakeLists.txt
parent6faa69047fc393219ec56627e15ebce039c45171 (diff)
parent49f8351a1812ea55acd97aca15f72bf677e00fa9 (diff)
downloadCMake-23b3ca5e1f599d05e822b651a09bb8b9e0df6240.zip
CMake-23b3ca5e1f599d05e822b651a09bb8b9e0df6240.tar.gz
CMake-23b3ca5e1f599d05e822b651a09bb8b9e0df6240.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2019-05-15 (dea11658)
Diffstat (limited to 'Source/kwsys/CMakeLists.txt')
-rw-r--r--Source/kwsys/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt
index 1302c64..120b5de 100644
--- a/Source/kwsys/CMakeLists.txt
+++ b/Source/kwsys/CMakeLists.txt
@@ -894,6 +894,11 @@ IF(KWSYS_C_SRCS OR KWSYS_CXX_SRCS)
IF(KWSYS_USE_SystemInformation)
IF(WIN32)
TARGET_LINK_LIBRARIES(${KWSYS_TARGET_INTERFACE} ${KWSYS_LINK_DEPENDENCY} ws2_32)
+ # link in dbghelp.dll for symbol lookup if MSVC 1800 or later
+ # Note that the dbghelp runtime is part of MS Windows OS
+ IF(MSVC_VERSION AND NOT MSVC_VERSION VERSION_LESS 1800)
+ TARGET_LINK_LIBRARIES(${KWSYS_TARGET_INTERFACE} ${KWSYS_LINK_DEPENDENCY} dbghelp)
+ ENDIF()
IF(KWSYS_SYS_HAS_PSAPI)
TARGET_LINK_LIBRARIES(${KWSYS_TARGET_INTERFACE} ${KWSYS_LINK_DEPENDENCY}
Psapi)