Commit ac6a5406 authored by whitlocb's avatar whitlocb
Browse files

I added -L support to xml2cmake.



git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@11552 18c085ea-50e0-402c-830e-de6fd14e8384
parent eac3da49
......@@ -765,12 +765,14 @@ class CMakeGeneratorPlugin : public Plugin
}
out << endl;
// Extract extra link directories from LDFLAGS if they have ${} or $()
// Extract extra link directories from LDFLAGS if they have ${},$(),-L
vector<QString> linkDirs;
for (size_t i=0; i<ldflags.size(); i++)
{
if(ldflags[i].startsWith("${") || ldflags[i].startsWith("$("))
linkDirs.push_back(ldflags[i]);
else if(ldflags[i].startsWith("-L"))
linkDirs.push_back(ldflags[i].right(ldflags[i].size()-2));
}
out << "LINK_DIRECTORIES(${VISIT_LIBRARY_DIR} ${VTK_LIBRARY_DIRS} " << ToString(linkDirs) << ")" << endl;
out << endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment