diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-01-14 17:48:58 +0100 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2020-01-14 17:36:46 +0000 |
commit | 91d50d4d466c8bc35cc81ee31be7b14e7c3c404a (patch) | |
tree | e0ffdb5dc4ffb58c853a3b471816c4dfe616a1a5 /cmake | |
parent | b4868a4560f36cb035dd346733e4425511596740 (diff) | |
download | qt-creator-91d50d4d466c8bc35cc81ee31be7b14e7c3c404a.tar.gz |
CMake Build: match qmake naming scheme on Windows
Plugin4.dll and Library4.dll
Change-Id: Ifec8c04f4f0f2ee4315d31db288379fad2b41d48
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtCreatorAPI.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index f7caec76ed..06f69c5de0 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -484,6 +484,14 @@ function(add_qtc_library name) ) enable_pch(${name}) + if (WIN32) + # Match qmake naming scheme e.g. Library4.dll + set_target_properties(${name} PROPERTIES + SUFFIX "${PROJECT_VERSION_MAJOR}${CMAKE_SHARED_LIBRARY_SUFFIX}" + PREFIX "" + ) + endif() + unset(NAMELINK_OPTION) if (library_type STREQUAL "SHARED") set(NAMELINK_OPTION NAMELINK_SKIP) @@ -696,6 +704,14 @@ function(add_qtc_plugin target_name) QT_SKIP_TRANSLATION "${skip_translation}" ${_arg_PROPERTIES} ) + + if (WIN32) + # Match qmake naming scheme e.g. Plugin4.dll + set_target_properties(${target_name} PROPERTIES + SUFFIX "${PROJECT_VERSION_MAJOR}${CMAKE_SHARED_LIBRARY_SUFFIX}" + PREFIX "" + ) + endif() append_extra_translations("${target_name}" "${_arg_EXTRA_TRANSLATIONS}") enable_pch(${target_name}) |