CMake: add _d filename suffix to python.zip for the cdbextension

... for debug builds

Change-Id: Ia5279aff3658518b946cee3c910b885c5376bfe1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
David Schulz
2020-12-11 15:27:40 +01:00
parent a55b7c6094
commit 30397fd2d4

View File

@@ -58,7 +58,11 @@ if (_library_enabled)
foreach(lib IN LISTS PYTHON_LIBRARIES)
if (lib MATCHES ${PythonRegex})
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(PythonZipFileName "python${CMAKE_MATCH_4}_d.zip")
else()
set(PythonZipFileName "python${CMAKE_MATCH_4}.zip")
endif()
set(PythonDll "${CMAKE_MATCH_1}/${CMAKE_MATCH_3}${CMAKE_SHARED_LIBRARY_SUFFIX}")
set(PythonExe "${CMAKE_MATCH_1}/python${CMAKE_EXECUTABLE_SUFFIX}")