diff options
author | Morné Chamberlain <thefreeman.za@gmail.com> | 2012-11-04 14:15:04 (GMT) |
---|---|---|
committer | Morné Chamberlain <thefreeman.za@gmail.com> | 2012-11-04 14:15:04 (GMT) |
commit | 90bcb77956464b53aaf2ce8d17b2a878f74ce27e (patch) | |
tree | f578b78ca7998033c4fa0b029d2f02de7afa26eb /Source/cmExtraSublimeTextGenerator.h | |
parent | cc84072156ffe7e57248d2207dba6d9fd2b57146 (diff) | |
download | CMake-90bcb77956464b53aaf2ce8d17b2a878f74ce27e.zip CMake-90bcb77956464b53aaf2ce8d17b2a878f74ce27e.tar.gz CMake-90bcb77956464b53aaf2ce8d17b2a878f74ce27e.tar.bz2 |
SublimeText2 Gen: Improved use of define, include flags from CMAKE_C(XX)_FLAGS
Both define and include flags from CMAKE_C(XX)_FLAGS are now included in
SublimeClang options.
Include directories are now used with absolute paths instead of relative
paths since CMake generated build trees cannot be moved anyway.
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.h')
-rw-r--r-- | Source/cmExtraSublimeTextGenerator.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.h b/Source/cmExtraSublimeTextGenerator.h index 1735b75..fe8832f 100644 --- a/Source/cmExtraSublimeTextGenerator.h +++ b/Source/cmExtraSublimeTextGenerator.h @@ -69,9 +69,12 @@ private: const char* compiler, std::set<std::string>& includeDirs, std::set<std::string>& defines, bool firstTarget); - /** Extracts -D compile flags from a variable */ - void ExtractDefines(const char* value, bool check, - std::set<std::string> &defines); + /** + * Extracts compile flags from a variable. + * flag would typically be "-D" or "-I" + */ + void ExtractFlags(const char* value, const std::string& flag, + std::set<std::string> &defines); }; #endif |