Skip to content

Commit 9cc5a50

Browse files
committed
Change static config to use standard name
1 parent 4789832 commit 9cc5a50

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ make install
3939
Alternatively build as static library (best for portability)
4040
```shell
4141
mkdir build && cd build
42-
qmake CONFIG+=static_lib ..
42+
qmake CONFIG+=staticlib ..
4343
make install
4444
```
4545

build_msvc.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ SET PROJDIR=%CD%
3939
SET BUILDDIR=%PROJDIR%\..\build-qtusb-%ARCH%
4040

4141
SET STATIC=""
42-
IF "%LIBTYPE%" == "static" SET STATIC="CONFIG+=static_lib"
42+
IF "%LIBTYPE%" == "static" SET STATIC="CONFIG+=staticlib"
4343

4444
CALL "C:\Program Files (x86)\Microsoft Visual Studio\%MSVC%\Community\VC\Auxiliary\Build\vcvarsall.bat" %vcarch%
4545

src/usb/usb.pro

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ DEFINES += QT_BUILD_USB_LIB
77

88
include($$PWD/usb-lib.pri)
99

10-
CONFIG(static_lib) {
10+
CONFIG(staticlib) {
1111
message("Build as Qt module (static library)")
12-
CONFIG += staticlib
1312
} else {
1413
message("Build as Qt module (dynamic library)")
1514
}

0 commit comments

Comments
 (0)