summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2020-05-29 12:08:01 +0200
committerCristian Adam <cristian.adam@gmail.com>2020-05-29 16:58:43 +0200
commit9b0e23ef8a915a8c58808fa356f771ecdb6f020c (patch)
treee55af7070261c4fbc1d4bfd3205de8de3d2bc92a /cmake
parent743c7234df3be9ea1404b6eb26b753d327ce66c0 (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 'cmake')
-rw-r--r--cmake/QtBuild.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index 5a604a0c44..f56bfe5cd2 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -3115,6 +3115,10 @@ function(qt_internal_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()
qt_set_common_target_properties(${target})