diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2019-09-05 00:35:09 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2019-09-05 00:36:46 +0300 |
commit | 2c94535e5c4dc6ad22bc2f34f76f5a5da6cf652e (patch) | |
tree | 396cc96bf2a6ad6ab71bc307d7bc50cd0462f726 | |
parent | 6fb62e5afd575a380322955a0a0144e4a6f8f86d (diff) |
[cmake] Fix suffix of MinGW import libraries
QMake doesn't treat import libraries as a separate product kind, while
CMake by default uses different ".dll.a" suffix for them.
Change-Id: Icc77b6b1fa050d29781211ed961ba005e0b689e9
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
-rw-r--r-- | Source/cmake/OptionsQt.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmake/OptionsQt.cmake b/Source/cmake/OptionsQt.cmake index ed7f4d52f..d582ead76 100644 --- a/Source/cmake/OptionsQt.cmake +++ b/Source/cmake/OptionsQt.cmake @@ -153,6 +153,7 @@ if (COMPILER_IS_GCC_OR_CLANG) add_definitions(-DQT_NO_DYNAMIC_CAST) endif () +# Align build product names with QMake conventions if (WIN32) if (${CMAKE_BUILD_TYPE} MATCHES "Debug") set(CMAKE_DEBUG_POSTFIX d) @@ -160,6 +161,8 @@ if (WIN32) set(CMAKE_SHARED_LIBRARY_PREFIX "") set(CMAKE_SHARED_MODULE_PREFIX "") + # QMake doesn't treat import libraries as a separate product kind + set(CMAKE_IMPORT_LIBRARY_SUFFIX "${CMAKE_STATIC_LIBRARY_SUFFIX}") endif () WEBKIT_OPTION_BEGIN() |