aboutsummaryrefslogtreecommitdiff
path: root/devel/cppcheck/files/patch-lib_CMakeLists.txt
blob: b3bf45f144a5d939b35d142fb102a7d030ddd64b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/CMakeLists.txt.orig	2022-08-28 12:43:18 UTC
+++ lib/CMakeLists.txt
@@ -36,6 +36,8 @@ if(USE_BUNDLED_TINYXML2)
 target_include_directories(lib_objs SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/externals/)
 if(USE_BUNDLED_TINYXML2)
     target_include_directories(lib_objs SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/externals/tinyxml2/)
+else()
+    target_link_libraries(lib_objs PRIVATE tinyxml2::tinyxml2)
 endif()
 target_include_directories(lib_objs SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/externals/picojson/)
 target_include_directories(lib_objs SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/externals/simplecpp/)