links with wsock32 only if the jsonapi is built

This commit is contained in:
zapek 2018-09-20 23:29:36 +02:00
parent 458a8b0878
commit dc926d30c8
2 changed files with 4 additions and 1 deletions

View file

@ -57,6 +57,9 @@ rs_jsonapi {
QMAKE_LIBDIR *= $$clean_path($${RESTBED_BUILD_PATH}/library/)
# Using sLibs would fail as librestbed.a is generated at compile-time
LIBS *= -L$$clean_path($${RESTBED_BUILD_PATH}/library/) -lrestbed
win32-g++ {
LIBS += -lwsock32
}
}
linux-* {