diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-03-31 15:01:52 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-03-31 15:01:52 (GMT) |
commit | d0cea4c7bb19fecd5b0f7c7636d089a8ef28825b (patch) | |
tree | d770b39b441c777d12a6c8127966549cd9bf8860 /Source/cmake.cxx | |
parent | d1185c59104565a96026ee78498f8739b77b2b3c (diff) | |
download | CMake-d0cea4c7bb19fecd5b0f7c7636d089a8ef28825b.zip CMake-d0cea4c7bb19fecd5b0f7c7636d089a8ef28825b.tar.gz CMake-d0cea4c7bb19fecd5b0f7c7636d089a8ef28825b.tar.bz2 |
ENH: make relative paths optional and default off, and add a test for them
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") || |