summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.h
diff options
context:
space:
mode:
authorEphi Sinowitz <esinowitz@bloomberg.net>2018-04-13 11:58:47 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-23 15:47:52 (GMT)
commit76ad2ecb500c8652e59179959b8ecee28a5196de (patch)
tree2b1e52f6d39890d9b5fef4295999da7a5c20dbd8 /Source/cmLocalGenerator.h
parentfe0082875aeecead23b2351629abca4990dfba43 (diff)
downloadCMake-76ad2ecb500c8652e59179959b8ecee28a5196de.zip
CMake-76ad2ecb500c8652e59179959b8ecee28a5196de.tar.gz
CMake-76ad2ecb500c8652e59179959b8ecee28a5196de.tar.bz2
Order SYSTEM include directories after non-system directories
An effect of the `-isystem` flag is to search the directory after those specified via `-I` flags. Make behavior more consistent on compilers that do not have any `-isystem` flag by explicitly moving system include directories to the end.
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r--Source/cmLocalGenerator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index 533ac56..9ba62cc 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -411,6 +411,10 @@ private:
int targetType);
void ComputeObjectMaxPath();
+ void MoveSystemIncludesToEnd(std::vector<std::string>& includeDirs,
+ const std::string& config,
+ const std::string& lang,
+ cmGeneratorTarget const* target) const;
};
#if defined(CMAKE_BUILD_WITH_CMAKE)