Add -lodbc for OSX/Linux

This commit is contained in:
Francis ANDRE 2018-09-24 21:46:23 +02:00
parent 1935abf81a
commit 13e7fe1aae

View File

@ -56,11 +56,9 @@ model {
if (toolChain in VisualCpp) { if (toolChain in VisualCpp) {
cppCompiler.define "THREADSAFE=1" cppCompiler.define "THREADSAFE=1"
} }
if (toolChain in Gcc) { if (toolChain in Gcc || toolChain in Clang) {
cppCompiler.define "POCO_UNIXODBC"
}
if (toolChain in Clang) {
cppCompiler.define "POCO_UNIXODBC" cppCompiler.define "POCO_UNIXODBC"
linker.args "-lodbc"
} }
} }
withType(SharedLibraryBinarySpec) { withType(SharedLibraryBinarySpec) {