I am trying to build SOCI on Windows with a different library suffix using the CMAKE_SHARED_LIBRARY_SUFFIX
option, but the script seems to ignore it.
Here is the command I run in a batch file:
cmake^
-G "NMake Makefiles"^
-DCMAKE_BUILD_TYPE=Release^
-DCMAKE_SHARED_LIBRARY_SUFFIX="-vc140-x64-mt.dll"^
..\soci.3.2.3
The documentation does not say anything about the CMAKE_SHARED_LIBRARY_SUFFIX
option, but the core/CMakeLists.txt
script uses it to define the SOCI_LIB_SUFFIX
option, which is reported on the screen when cmake
is run. However, its value is always ".dll"
instead of "-vc140-x64-mt.dll"
, so it must be overwritten somewhere I don't know.
Any idea why is this happening and how fix it?