Link to Shlwapi.lib on MSVC to get rid of missing symbol issues. (#978)

This commit is contained in:
Ali Can Demiralp 2017-10-18 17:38:15 +02:00 committed by Daniel Marjamäki
parent 151ace2581
commit bf174f583b
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ add_executable(cppcheck ${hdrs} ${mainfile} $<TARGET_OBJECTS:cli_objs> $<TARGET_
if (HAVE_RULES)
target_link_libraries(cppcheck pcre)
endif()
if (MSVC)
target_link_libraries(cppcheck Shlwapi.lib)
endif()
install(TARGETS cppcheck
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}