diff options
Diffstat (limited to 'share/qbs/modules/cpp/windows-msvc.qbs')
-rw-r--r-- | share/qbs/modules/cpp/windows-msvc.qbs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/windows-msvc.qbs b/share/qbs/modules/cpp/windows-msvc.qbs index 134de44b3..00df214f8 100644 --- a/share/qbs/modules/cpp/windows-msvc.qbs +++ b/share/qbs/modules/cpp/windows-msvc.qbs @@ -45,6 +45,12 @@ CppModule { id: module + Probes.BinaryProbe { + id: compilerPathProbe + condition: !toolchainInstallPath + names: ["cl"] + } + Probes.MsvcProbe { id: msvcProbe compilerFilePath: compilerPath @@ -89,7 +95,8 @@ CppModule { separateDebugInformation: true property bool generateManifestFile: true - property path toolchainInstallPath + property string toolchainInstallPath: compilerPathProbe.found ? compilerPathProbe.path + : undefined architecture: qbs.architecture staticLibraryPrefix: "" dynamicLibraryPrefix: "" |