File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if (WIN32 AND NOT BORLAND)
3535 endif ()
3636endif ()
3737if (tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
38- target_link_libraries (cppcheck ${tinyxml2_LIBRARY } )
38+ target_link_libraries (cppcheck ${tinyxml2_LIBRARIES } )
3939endif ()
4040
4141add_dependencies (cppcheck copy_cfg )
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ endif()
4949if (NOT USE_BUNDLED_TINYXML2)
5050 find_package (tinyxml2 QUIET )
5151 if (NOT tinyxml2_FOUND)
52- find_library (tinyxml2_LIBRARY tinyxml2 )
53- if (NOT tinyxml2_LIBRARY )
52+ find_library (tinyxml2_LIBRARIES tinyxml2 )
53+ if (NOT tinyxml2_LIBRARIES )
5454 message (FATAL_ERROR "tinyxml2 has not been found" )
5555 else ()
5656 message (STATUS "tinyxml2_LIBRARY: ${tinyxml2_LIBRARY} " )
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ if (USE_Z3)
5353 message ( STATUS "Z3_CXX_INCLUDE_DIRS = ${Z3_CXX_INCLUDE_DIRS} " )
5454endif ()
5555message ( STATUS "USE_BUNDLED_TINYXML2 = ${USE_BUNDLED_TINYXML2} " )
56+ if (NOT USE_BUNDLED_TINYXML2)
57+ message (STATUS "tinyxml2_LIBRARIES = ${tinyxml2_LIBRARIES} " )
58+ endif ()
5659message ( STATUS )
5760
5861if (${ANALYZE_ADDRESS} )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if (BUILD_GUI)
3636 target_link_libraries (cppcheck-gui ${Z3_LIBRARIES} )
3737 endif ()
3838 if (tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
39- target_link_libraries (cppcheck-gui tinyxml2 )
39+ target_link_libraries (cppcheck-gui ${tinyxml2_LIBRARIES} )
4040 endif ()
4141 target_link_libraries (cppcheck-gui Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Help )
4242 if (WITH_QCHART)
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ if (USE_Z3)
2020 target_link_libraries (benchmark-simple ${Z3_LIBRARIES} )
2121endif ()
2222if (tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
23- target_link_libraries (benchmark-simple ${tinyxml2_LIBRARY } )
23+ target_link_libraries (benchmark-simple ${tinyxml2_LIBRARIES } )
2424endif ()
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ if (USE_Z3)
2424 target_link_libraries (test -xmlreportv2 ${Z3_LIBRARIES} )
2525endif ()
2626if (tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
27- target_link_libraries (test -xmlreportv2 ${tinyxml2_LIBRARY } )
28- endif ()
27+ target_link_libraries (test -xmlreportv2 ${tinyxml2_LIBRARIES } )
28+ endif ()
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if (ENABLE_OSS_FUZZ AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
2525 target_link_libraries (fuzz-client PRIVATE ${Z3_LIBRARIES} )
2626 endif ()
2727 if (tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
28- target_link_libraries (fuzz-client PRIVATE tinyxml2 )
28+ target_link_libraries (fuzz-client PRIVATE ${tinyxml2_LIBRARIES} )
2929 endif ()
3030
3131 add_executable (translate EXCLUDE_FROM_ALL
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ if (BUILD_TESTS)
2626 endif ()
2727 endif ()
2828 if (tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
29- target_link_libraries (testrunner ${tinyxml2_LIBRARY } )
29+ target_link_libraries (testrunner ${tinyxml2_LIBRARIES } )
3030 endif ()
3131
3232 if (NOT CMAKE_DISABLE_PRECOMPILE_HEADERS)
You can’t perform that action at this time.
0 commit comments