dmake: add include path '../externals' to lib.pri in case the pcre.h is placed there.
This commit is contained in:
parent
2d3865a671
commit
48241c81f8
|
@ -1,7 +1,7 @@
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
TARGET = cppcheck
|
TARGET = cppcheck
|
||||||
DEPENDPATH += .
|
DEPENDPATH += .
|
||||||
INCLUDEPATH += . ../lib ../externals
|
INCLUDEPATH += . ../lib
|
||||||
OBJECTS_DIR = temp
|
OBJECTS_DIR = temp
|
||||||
CONFIG += warn_on
|
CONFIG += warn_on
|
||||||
CONFIG -= qt app_bundle
|
CONFIG -= qt app_bundle
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# no manual edits - this file is autogenerated by dmake
|
# no manual edits - this file is autogenerated by dmake
|
||||||
|
|
||||||
LIBS += -L../externals -lpcre
|
LIBS += -L../externals -lpcre
|
||||||
|
INCLUDEPATH += ../externals
|
||||||
HEADERS += $$PWD/check.h \
|
HEADERS += $$PWD/check.h \
|
||||||
$$PWD/checkautovariables.h \
|
$$PWD/checkautovariables.h \
|
||||||
$$PWD/checkbufferoverrun.h \
|
$$PWD/checkbufferoverrun.h \
|
||||||
|
|
|
@ -138,7 +138,8 @@ int main(int argc, char **argv)
|
||||||
if (fout1.is_open())
|
if (fout1.is_open())
|
||||||
{
|
{
|
||||||
fout1 << "# no manual edits - this file is autogenerated by dmake\n\n";
|
fout1 << "# no manual edits - this file is autogenerated by dmake\n\n";
|
||||||
fout1 << "LIBS += -lpcre\n";
|
fout1 << "LIBS += -L../externals -lpcre\n";
|
||||||
|
fout1 << "INCLUDEPATH += ../externals\n";
|
||||||
fout1 << "HEADERS += $$PWD/check.h \\\n";
|
fout1 << "HEADERS += $$PWD/check.h \\\n";
|
||||||
for (unsigned int i = 0; i < libfiles.size(); ++i)
|
for (unsigned int i = 0; i < libfiles.size(); ++i)
|
||||||
{
|
{
|
||||||
|
@ -172,6 +173,8 @@ int main(int argc, char **argv)
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fout << "# This file is generated by tools/dmake, do not edit.\n\n";
|
||||||
|
|
||||||
// Makefile settings..
|
// Makefile settings..
|
||||||
if (release)
|
if (release)
|
||||||
{
|
{
|
||||||
|
@ -179,8 +182,6 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fout << "# This file is generated by tools/dmake, do not edit.\n\n";
|
|
||||||
|
|
||||||
// TODO: add more compiler warnings.
|
// TODO: add more compiler warnings.
|
||||||
// -Wconversion : generates too many compiler warnings currently
|
// -Wconversion : generates too many compiler warnings currently
|
||||||
// -Wlogical-op : doesn't work on older GCC
|
// -Wlogical-op : doesn't work on older GCC
|
||||||
|
|
Loading…
Reference in New Issue