diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-12-04 15:36:48 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-02-22 11:31:49 (GMT) |
commit | edd5303949f9d0e1b4b11e83aecd34bfdb2700ce (patch) | |
tree | e7c4328884cba9f0c5b07fb3ed4c78d39ecbb02a /Source/cmake.cxx | |
parent | 6a1c5a356911d3b75e60ecad86d7538e6de888f9 (diff) | |
download | CMake-edd5303949f9d0e1b4b11e83aecd34bfdb2700ce.zip CMake-edd5303949f9d0e1b4b11e83aecd34bfdb2700ce.tar.gz CMake-edd5303949f9d0e1b4b11e83aecd34bfdb2700ce.tar.bz2 |
Refactor GetIncludeFlags to take includes instead of fetching them
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index cce5080..749caf5 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -605,7 +605,11 @@ bool cmake::FindPackage(const std::vector<std::string>& args) mf->AddIncludeDirectory(dirIt->c_str(), false); } - std::string includeFlags = lg->GetIncludeFlags(language.c_str(), false); + std::vector<std::string> includeDirectories; + lg->GetIncludeDirectories(includeDirectories, language.c_str()); + std::string includeFlags = lg->GetIncludeFlags(includeDirectories, + language.c_str(), false); + std::string definitions = mf->GetSafeDefinition("PACKAGE_DEFINITIONS"); printf("%s %s\n", includeFlags.c_str(), definitions.c_str()); } |