Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
1.12.2
-
None
-
Windows 10
Qt 5.6.3
Description
I create a simple example how presence of dependency on Qt libraries leads to ignoring cpp.runtimeLibrary field, that is defined in my profile.
Developer@WIN-DEVELOPER MINGW64 /c/work/sample $ qbs --version 1.12.2 Developer@WIN-DEVELOPER MINGW64 /c/work/sample $ qbs config --list | grep 'windows-x86-msvc14..*cpp.runtimeLibrary' profiles.windows-x86-msvc14.cpp.runtimeLibrary: "static" profiles.windows-x86-msvc141.cpp.runtimeLibrary: "static" Developer@WIN-DEVELOPER MINGW64 /c/work/sample $ qbs profile:windows-x86-msvc14 Build graph does not yet exist for configuration 'default'. Starting from scratch. Resolving project for configuration default ERROR: QtApp: dynamic ERROR: App: static Setting up build graph for configuration default Building for configuration default compiling QtApp.cpp [QtApplication] compiling App.cpp [Application] linking QtApplication.exe [QtApplication] linking Application.exe [Application] Build done for configuration default.
If I will define type of linking in a console or in the product directly, all will going right way
Developer@WIN-DEVELOPER MINGW64 /c/work/sample $ qbs profile:windows-x86-msvc14 modules.cpp.runtimeLibrary:"static" Build graph does not yet exist for configuration 'default'. Starting from scratch. Resolving project for configuration default ERROR: QtApp: static ERROR: App: static Setting up build graph for configuration default Building for configuration default compiling App.cpp [Application] Creating static import for plugin 'qwindows'. [QtApplication] compiling QtApplication_qt_plugin_import_qwindows.cpp [QtApplication] compiling QtApp.cpp [QtApplication] linking Application.exe [Application] linking QtApplication.exe [QtApplication] Build done for configuration default.
What can be reason of this behavior?
According this commit, I want to discover, does qbs-setup-qt affect on Qt.core, that change type of linking by cheсking
cpp.runtimeLibrary: qbs.toolchain.contains("msvc") ? config.contains("static_runtime") ? "static" : "dynamic" : original