Link to Shlwapi.lib on MSVC to get rid of missing symbol issues. (#978)
This commit is contained in:
parent
151ace2581
commit
bf174f583b
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue