diff --git a/README.md b/README.md index 963733a..968a6ec 100755 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ make install Alternatively build as static library (best for portability) ```shell mkdir build && cd build -qmake CONFIG+=static_lib .. +qmake CONFIG+=staticlib .. make install ``` diff --git a/build_msvc.bat b/build_msvc.bat index 4a9aba7..fdc33ba 100644 --- a/build_msvc.bat +++ b/build_msvc.bat @@ -39,7 +39,7 @@ SET PROJDIR=%CD% SET BUILDDIR=%PROJDIR%\..\build-qtusb-%ARCH% SET STATIC="" -IF "%LIBTYPE%" == "static" SET STATIC="CONFIG+=static_lib" +IF "%LIBTYPE%" == "static" SET STATIC="CONFIG+=staticlib" CALL "C:\Program Files (x86)\Microsoft Visual Studio\%MSVC%\Community\VC\Auxiliary\Build\vcvarsall.bat" %vcarch% diff --git a/src/usb/usb.pro b/src/usb/usb.pro index d0e2414..9f857d1 100755 --- a/src/usb/usb.pro +++ b/src/usb/usb.pro @@ -7,9 +7,8 @@ DEFINES += QT_BUILD_USB_LIB include($$PWD/usb-lib.pri) -CONFIG(static_lib) { +CONFIG(staticlib) { message("Build as Qt module (static library)") - CONFIG += staticlib } else { message("Build as Qt module (dynamic library)") }