summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraEclipseCDT4Generator.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-01-11 17:18:44 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2009-01-11 17:18:44 (GMT)
commit0d48ea69842d16fad63cc8ac0bfc42bbb7eb11ef (patch)
treeecf28151567e7ee732cb125f66da0958084ddd35 /Source/cmExtraEclipseCDT4Generator.h
parent3db17e22c95fd1a61574ea591f38fb42db450f59 (diff)
downloadCMake-0d48ea69842d16fad63cc8ac0bfc42bbb7eb11ef.zip
CMake-0d48ea69842d16fad63cc8ac0bfc42bbb7eb11ef.tar.gz
CMake-0d48ea69842d16fad63cc8ac0bfc42bbb7eb11ef.tar.bz2
ENH: patch from Miguel,
As it is today the generator creates linked resources to LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH if they are not a subdirectory of the binary dir, so that the IDE can detect the Binaries (this was addressed previously as a result of a bug report). Reduces code redundancy by encapsulating common behaviour for LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH in AppendLinkedResource. Addresses the two new variable names for these locations, CMAKE_LIBRARY_OUTPUT_DIRECTORY and CMAKE_RUNTIME_OUTPUT_DIRECTORY respectively. Finally, it is addressing a bug in the current code for relative paths in these variables. If it is a relative path to the binary dir, the IsSubdirectory call returns false and so it creates the linked resource. The created linked resource produces an error in the Eclipse IDE because the IDE expects it to be a full path. The patch now addresses this by concatenating the binary dir if it is a relative path.
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.h')
-rw-r--r--Source/cmExtraEclipseCDT4Generator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.h b/Source/cmExtraEclipseCDT4Generator.h
index 955d0aa..0898b76 100644
--- a/Source/cmExtraEclipseCDT4Generator.h
+++ b/Source/cmExtraEclipseCDT4Generator.h
@@ -107,6 +107,10 @@ private:
const std::string& name,
const std::string& path);
+ bool AppendOutLinkedResource(cmGeneratedFileStream& fout,
+ const std::string& defname,
+ const std::string& altdefname);
+
std::vector<std::string> SrcLinkedResources;
std::vector<std::string> OutLinkedResources;
std::string HomeDirectory;