Skip to content

Commit bf174f5

Browse files
acdemiralpdanmar
authored andcommitted
Link to Shlwapi.lib on MSVC to get rid of missing symbol issues. (cppcheck-opensource#978)
1 parent 151ace2 commit bf174f5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cli/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ add_executable(cppcheck ${hdrs} ${mainfile} $<TARGET_OBJECTS:cli_objs> $<TARGET_
1212
if (HAVE_RULES)
1313
target_link_libraries(cppcheck pcre)
1414
endif()
15+
if (MSVC)
16+
target_link_libraries(cppcheck Shlwapi.lib)
17+
endif()
1518

1619
install(TARGETS cppcheck
1720
RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}

0 commit comments

Comments
 (0)