File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ if (BUILD_CLI)
2424
2525 add_executable (cppcheck ${cppcheck_SOURCES} )
2626 target_link_libraries (cppcheck cppcheck-core cli tinyxml2 simplecpp )
27- if (HAVE_RULES)
28- target_link_libraries (cppcheck ${PCRE_LIBRARY} )
29- endif ()
3027 if (WIN32 AND NOT BORLAND )
3128 if (NOT MINGW)
3229 target_link_libraries (cppcheck Shlwapi.lib )
Original file line number Diff line number Diff line change @@ -9,15 +9,9 @@ add_executable(test-xmlreportv2
99 ${CMAKE_SOURCE_DIR} /gui/xmlreport.cpp
1010 ${CMAKE_SOURCE_DIR} /gui/xmlreportv2.cpp
1111 )
12- target_include_directories (test -xmlreportv2 PRIVATE ${CMAKE_SOURCE_DIR} /gui ${CMAKE_SOURCE_DIR} /lib )
12+ target_include_directories (test -xmlreportv2 PRIVATE ${CMAKE_SOURCE_DIR} /gui )
1313target_compile_definitions (test -xmlreportv2 PRIVATE SRCDIR= "${CMAKE_CURRENT_SOURCE_DIR} " )
1414target_link_libraries (test -xmlreportv2 ${QT_CORE_LIB} ${QT_TEST_LIB} cppcheck-core )
15- if (HAVE_RULES)
16- target_link_libraries (test -xmlreportv2 ${PCRE_LIBRARY} )
17- endif ()
18- if (tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
19- target_link_libraries (test -xmlreportv2 ${tinyxml2_LIBRARIES} )
20- endif ()
2115if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
2216 if (QT_VERSION VERSION_LESS "6.0.0" )
2317 # Q_UNUSED() in generated code - see https://bugreports.qt.io/browse/QTBUG-82978
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ target_dll_compile_definitions(cppcheck-core EXPORT CPPCHECKLIB_EXPORT)
5555target_dll_compile_definitions (cppcheck-core-private IMPORT CPPCHECKLIB_IMPORT )
5656
5757target_include_directories (cppcheck-core INTERFACE . )
58- foreach (lib tinyxml2 simplecpp picojson)
58+ foreach (lib tinyxml2 simplecpp picojson ${PCRE_LIBRARY} )
5959 if (NOT BUILD_SHARED_LIBS )
6060 target_link_libraries (cppcheck-core INTERFACE $<LINK_ONLY :${lib} >)
6161 endif ()
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ if (BUILD_TESTS)
88
99 add_executable (testrunner ${testrunner_SOURCES} )
1010 target_link_libraries (testrunner cppcheck-core tinyxml2 simplecpp frontend cli )
11- if (HAVE_RULES)
12- target_link_libraries (testrunner ${PCRE_LIBRARY} )
13- endif ()
1411 if (WIN32 AND NOT BORLAND )
1512 if (NOT MINGW)
1613 target_link_libraries (testrunner Shlwapi.lib )
You can’t perform that action at this time.
0 commit comments