aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qtcreatorcdbext
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2020-12-11 15:27:40 +0100
committerDavid Schulz <david.schulz@qt.io>2020-12-14 12:36:04 +0000
commit30397fd2d416227331d3ca83b522c4c6ff8e6d16 (patch)
tree16c5c9b98fec08d9a055d593949d636597d950c4 /src/libs/qtcreatorcdbext
parenta55b7c60947c7bdc356b6c1daceea210d8eae4c5 (diff)
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>
Diffstat (limited to 'src/libs/qtcreatorcdbext')
-rw-r--r--src/libs/qtcreatorcdbext/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libs/qtcreatorcdbext/CMakeLists.txt b/src/libs/qtcreatorcdbext/CMakeLists.txt
index 45d55474aa..41769a2984 100644
--- a/src/libs/qtcreatorcdbext/CMakeLists.txt
+++ b/src/libs/qtcreatorcdbext/CMakeLists.txt
@@ -58,7 +58,11 @@ if (_library_enabled)
foreach(lib IN LISTS PYTHON_LIBRARIES)
if (lib MATCHES ${PythonRegex})
- set(PythonZipFileName "python${CMAKE_MATCH_4}.zip")
+ 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}")