diff options
author | Mateusz Łoskot <mateusz@loskot.net> | 2018-11-09 17:15:12 (GMT) |
---|---|---|
committer | Mateusz Łoskot <mateusz@loskot.net> | 2018-11-09 18:49:05 (GMT) |
commit | 4e4551f9f37ab95d70d9226103deb673e8f5cd02 (patch) | |
tree | d3e90df2cbd53aeb76d211c8ece998d1d27b0818 /Modules/FindODBC.cmake | |
parent | 48bc74710d4ddcf62e3dcf69e3400e4060a2bdc1 (diff) | |
download | CMake-4e4551f9f37ab95d70d9226103deb673e8f5cd02.zip CMake-4e4551f9f37ab95d70d9226103deb673e8f5cd02.tar.gz CMake-4e4551f9f37ab95d70d9226103deb673e8f5cd02.tar.bz2 |
FindODBC: Do not assume odbc32.lib for MinGW
For MinGW, do not look for odbc32.lib but allow search for libodbc32.a.
Fixes: #18539
Diffstat (limited to 'Modules/FindODBC.cmake')
-rw-r--r-- | Modules/FindODBC.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindODBC.cmake b/Modules/FindODBC.cmake index c8ca477..29d7af9 100644 --- a/Modules/FindODBC.cmake +++ b/Modules/FindODBC.cmake @@ -90,7 +90,9 @@ set(_odbc_required_libs_names) ### Try Windows Kits ########################################################## if(WIN32) # List names of ODBC libraries on Windows - set(ODBC_LIBRARY odbc32.lib) + if(NOT MINGW) + set(ODBC_LIBRARY odbc32.lib) + endif() set(_odbc_lib_names odbc32;) # List additional libraries required to use ODBC library |