Vadim Zeitlin
2015-03-31 20:50:18 UTC
Hello,
I've installed DB2 headers and libraries to be able to test that DB2
backend at least compiles (I still can't check whether it works because I
don't have access to any DB2 database server) and discovered that this
breaks the build of the ODBC backend as there is a conflict between
sqlext.h in DB2 include directory and ODBC file with the same name in
/usr/include. I.e. currently it seems to be impossible to build both DB2
and ODBC backends.
A straightforward fix would be to only use DB2_INCLUDE_DIR when compiling
DB2 files (the backend itself and the test), but I have no idea about how
to do this with CMake. Could any CMake experts please help?
TIA,
VZ
I've installed DB2 headers and libraries to be able to test that DB2
backend at least compiles (I still can't check whether it works because I
don't have access to any DB2 database server) and discovered that this
breaks the build of the ODBC backend as there is a conflict between
sqlext.h in DB2 include directory and ODBC file with the same name in
/usr/include. I.e. currently it seems to be impossible to build both DB2
and ODBC backends.
A straightforward fix would be to only use DB2_INCLUDE_DIR when compiling
DB2 files (the backend itself and the test), but I have no idea about how
to do this with CMake. Could any CMake experts please help?
TIA,
VZ