Skip to content

Commit a4b579d

Browse files
committed
Remove foreach loop
1 parent 5a27cca commit a4b579d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ endif()
5050
target_dll_compile_definitions(cppcheck-core EXPORT CPPCHECKLIB_EXPORT IMPORT CPPCHECKLIB_IMPORT)
5151

5252
target_include_directories(cppcheck-core PUBLIC .)
53-
foreach(lib tinyxml2 simplecpp picojson ${PCRE_LIBRARY})
54-
target_link_libraries(cppcheck-core PRIVATE ${lib})
55-
endforeach()
53+
target_link_libraries(cppcheck-core PRIVATE tinyxml2 simplecpp picojson ${PCRE_LIBRARY})
5654

5755
if (HAVE_RULES)
5856
target_include_directories(cppcheck-core SYSTEM PRIVATE ${PCRE_INCLUDE})

0 commit comments

Comments
 (0)