BUG: Do not accept a directory name as a library.
This commit is contained in:
parent
76724c23bf
commit
130d469dd4
|
@ -279,6 +279,8 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder()
|
||||||
cmStdString file;
|
cmStdString file;
|
||||||
std::vector<cmStdString> empty;
|
std::vector<cmStdString> empty;
|
||||||
for(unsigned int i=0; i < m_RawLinkItems.size(); ++i)
|
for(unsigned int i=0; i < m_RawLinkItems.size(); ++i)
|
||||||
|
{
|
||||||
|
if(cmSystemTools::FileIsFullPath(m_RawLinkItems[i].c_str()))
|
||||||
{
|
{
|
||||||
if(cmSystemTools::FileIsDirectory(m_RawLinkItems[i].c_str()))
|
if(cmSystemTools::FileIsDirectory(m_RawLinkItems[i].c_str()))
|
||||||
{
|
{
|
||||||
|
@ -290,8 +292,6 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder()
|
||||||
cmSystemTools::Message(message.c_str());
|
cmSystemTools::Message(message.c_str());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(cmSystemTools::FileIsFullPath(m_RawLinkItems[i].c_str()))
|
|
||||||
{
|
|
||||||
cmSystemTools::SplitProgramPath(m_RawLinkItems[i].c_str(),
|
cmSystemTools::SplitProgramPath(m_RawLinkItems[i].c_str(),
|
||||||
dir, file);
|
dir, file);
|
||||||
m_DirectoryToAfterList[dir] = empty;
|
m_DirectoryToAfterList[dir] = empty;
|
||||||
|
|
Loading…
Reference in New Issue