Le 26/01/2022 à 20:56, Joaquim Manuel Freire Luís a écrit :
>Ah my if(MSVC) suggestion was because I wrongly assumed you used mingw (the
_w64.dll >suffix
made me thing of mingw64), but I see the VC14 so you use MSVC.
The “_w64.dll” (and _w32.dll) suffixes are the reason why I
rebuild everything. Is there any way to set them in current cmake
solution? It was possible with nmake but for cmake I’m using this
patch to the root CMakeList.txt, which at a later stage, if there
is no existing alternative, I would like to propose it’s official
inclusion.
Sounds reasonable if you want to make a pull request for that (in
gdal.cmake in the root directory). No reason to restrict it to WIN32
however. Maybe call the variable GDAL_LIBRARY_OUTPUT_NAME ? And document
it in doc/source/build_hints.rst
Actually you could make it a option() and modify line 259 of gdal.cmake
(set_target_properties(${GDAL_LIB_TARGET_NAME} PROPERTIES OUTPUT_NAME
"gdal")) to use it.
# If a renaming of the dll has been set in ConfigUser.cmake
if (WIN32 AND GDAL_DLL_RENAME)
set_target_properties(GDAL PROPERTIES RUNTIME_OUTPUT_NAME
${GDAL_DLL_RENAME})
endif (WIN32 AND GDAL_DLL_RENAME)
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev