summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-03-21 13:45:57 (GMT)
committerBrad King <brad.king@kitware.com>2006-03-21 13:45:57 (GMT)
commitbcfca6e1c1d5ca328a683eda8aa68153681f526f (patch)
tree527644bc2d03309b59fab9b247fe270bff1ecbdc /Source/cmLocalGenerator.cxx
parentb29c26eb3f6e9ba7955d7a2a4a1cba614bd6fb0c (diff)
downloadCMake-bcfca6e1c1d5ca328a683eda8aa68153681f526f.zip
CMake-bcfca6e1c1d5ca328a683eda8aa68153681f526f.tar.gz
CMake-bcfca6e1c1d5ca328a683eda8aa68153681f526f.tar.bz2
ENH: Enabling CMAKE_INCLUDE_CURRENT_DIR even for in-source builds to be more consistent with its name. This also makes double-quote and angle-bracket include styles (almost) identical.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 3aaf824..3a8a2f1 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -872,17 +872,14 @@ void cmLocalGenerator::GetIncludeDirectories(std::vector<std::string>& dirs)
bool includeSourceDir = false;
bool includeBinaryDir = false;
- // When automatic include directories are requested for an
- // out-of-source build then include the source and binary
- // directories at the beginning of the include path to approximate
- // include file behavior for an in-source build. This does not
- // account for the case of a source file in a subdirectory of the
- // current source directory but we cannot fix this because not all
- // native build tools support per-source-file include paths.
- bool inSource =
- cmSystemTools::ComparePath(this->Makefile->GetStartDirectory(),
- this->Makefile->GetStartOutputDirectory());
- if(!inSource && this->Makefile->IsOn("CMAKE_INCLUDE_CURRENT_DIR"))
+ // When automatic include directories are requested for a build then
+ // include the source and binary directories at the beginning of the
+ // include path to approximate include file behavior for an
+ // in-source build. This does not account for the case of a source
+ // file in a subdirectory of the current source directory but we
+ // cannot fix this because not all native build tools support
+ // per-source-file include paths.
+ if(this->Makefile->IsOn("CMAKE_INCLUDE_CURRENT_DIR"))
{
includeSourceDir = true;
includeBinaryDir = true;