| Bug #115758 | mysql-concpp-config.cmake can't find lib correctly when use mingw | ||
|---|---|---|---|
| Submitted: | 3 Aug 2024 5:07 | Modified: | 5 Aug 2024 10:15 |
| Reporter: | chuansheng lin | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: C API (client library) | Severity: | S3 (Non-critical) |
| Version: | 9.0.0 | OS: | Windows (Windows 11) |
| Assigned to: | CPU Architecture: | x86 (AMD) | |
| Tags: | mysql-connector-cpp | ||
[3 Aug 2024 5:07]
chuansheng lin
[3 Aug 2024 7:41]
chuansheng lin
Another approach that should work is as follows:
·First, modify the definition of vs_suffix
-------------------
unset(vs_suffix)
if(WIN32)
if(MSVC)
set(vs_suffix vs14)
else()
set(vs_suffix "")
endif()
endif()
-------------------
·Next, around line 560, change the content
-------------------
if(WIN32)
if(MSVC)
set(lib_path_debug
"${MYSQL_CONCPP_RUNTIME_LIBRARY_DIR}/debug/${vs_suffix}/${base_name}.lib"
)
else()
set(lib_path_debug
"${MYSQL_CONCPP_RUNTIME_LIBRARY_DIR}/debug/lib${base_name}.dll.a"
)
endif()
endif()
-------------------
[5 Aug 2024 9:41]
MySQL Verification Team
Hi Mr. lin, Thank you for your bug report. However, we do not support MingW development toolset. We support only native Windows tools for our connectors. Unsupported.
[5 Aug 2024 10:15]
chuansheng lin
Oh, All right, just ignore this report.
