diff options
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 9c4f7d9..5ce680e 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1085,6 +1085,17 @@ int cmake::Configure() "Single output directory for building all executables.", cmCacheManager::PATH); } + if(!m_CacheManager->GetCacheValue("CMAKE_USE_RELATIVE_PATHS")) + { + m_CacheManager->AddCacheEntry("CMAKE_USE_RELATIVE_PATHS", false, + "If true, cmake will use relative paths in makefiles and projects."); + cmCacheManager::CacheIterator it = + m_CacheManager->GetCacheIterator("CMAKE_USE_RELATIVE_PATHS"); + if ( !it.PropertyExists("ADVANCED") ) + { + it.SetProperty("ADVANCED", "1"); + } + } if(cmSystemTools::GetFatalErrorOccured() && (!this->m_CacheManager->GetCacheValue("CMAKE_MAKE_PROGRAM") || |