Merge topic 'link-no-empty-response-files'

1c5be1f3 Makefile: Do not create an empty linker response file
This commit is contained in:
Brad King 2014-12-02 10:21:16 -05:00 committed by CMake Topic Stage
commit 983e434b00
1 changed files with 1 additions and 1 deletions

View File

@ -1853,7 +1853,7 @@ cmMakefileTargetGenerator
useWatcomQuote);
linkLibs = frameworkPath + linkPath + linkLibs;
if(useResponseFile)
if(useResponseFile && linkLibs.find_first_not_of(" ") != linkLibs.npos)
{
// Lookup the response file reference flag.
std::string responseFlagVar = "CMAKE_";