diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2020-05-29 12:08:01 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2020-05-29 16:58:43 +0200 |
commit | 9b0e23ef8a915a8c58808fa356f771ecdb6f020c (patch) | |
tree | e55af7070261c4fbc1d4bfd3205de8de3d2bc92a /src/corelib/Qt6CoreMacros.cmake | |
parent | 743c7234df3be9ea1404b6eb26b753d327ce66c0 (diff) |
CMake Build: Do not set "lib" prefix for modules (plugins)
CMake sets "lib" as default prefix for Windows-GNU platforms.
Change-Id: I49e3123c385610307c84c584a21f5f3827a6fafd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/Qt6CoreMacros.cmake')
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index 53a6405aed..88cdd3ce96 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -1211,6 +1211,10 @@ function(qt6_add_plugin target) # but Qt plugins are actually suffixed with .dylib. set_property(TARGET "${target}" PROPERTY SUFFIX ".dylib") endif() + if(WIN32) + # CMake sets for Windows-GNU platforms the suffix "lib" + set_property(TARGET "${target}" PROPERTY PREFIX "") + endif() endif() set(output_name ${target}) |