diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h index 64679542a5..4fb2ccf1f1 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h @@ -91,9 +91,13 @@ protected: if (binaryPath.isEmpty()) return getIntermediatesPath (config); - return ".\\" + RelativePath (binaryPath, RelativePath::projectFolder) - .rebased (projectFolder, getTargetFolder(), RelativePath::buildTargetFolder) - .toWindowsStyle(); + RelativePath binaryRelPath (binaryPath, RelativePath::projectFolder); + + if (binaryRelPath.isAbsolute()) + return binaryRelPath.toWindowsStyle(); + + return ".\\" + binaryRelPath.rebased (projectFolder, getTargetFolder(), RelativePath::buildTargetFolder) + .toWindowsStyle(); } String getPreprocessorDefs (const Project::BuildConfiguration& config, const String& joinString) const