Skip to content

Commit

Permalink
Fix ODBC driver discovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Aug 27, 2014
1 parent 03b2932 commit c4b3dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tables/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (ODBC_FOUND)
check_cxx_source_runs(
"#include \"odbc.cc\"
int main() {
return odbc::Env().FindDriver(\"access\").empty() ? 1 : 0;
return odbc::Env().FindDriver(\"*.accdb\").empty() ? 1 : 0;
}" HAVE_ACCESS_DRIVER)

if (HAVE_ACCESS_DRIVER)
Expand All @@ -22,7 +22,7 @@ if (ODBC_FOUND)
check_cxx_source_runs(
"#include \"odbc.cc\"
int main() {
return odbc::Env().FindDriver(\"excel\").empty() ? 1 : 0;
return odbc::Env().FindDriver(\"*.xlsx\").empty() ? 1 : 0;
}" HAVE_EXCEL_DRIVER)

if (HAVE_EXCEL_DRIVER)
Expand Down

0 comments on commit c4b3dfe

Please sign in to comment.