summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-05 20:55:24 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-05 20:55:24 (GMT)
commit33dbd7acf8fe0fb897e1a41ab6a22dd71cb8e2dc (patch)
tree4b48e7593f7022753800faa97df4b65173abdc17 /Source
parenta033bf3972c2f787beb26fdfd9e7a6db1ecf5b97 (diff)
downloadCMake-33dbd7acf8fe0fb897e1a41ab6a22dd71cb8e2dc.zip
CMake-33dbd7acf8fe0fb897e1a41ab6a22dd71cb8e2dc.tar.gz
CMake-33dbd7acf8fe0fb897e1a41ab6a22dd71cb8e2dc.tar.bz2
Re-enabling curses support.
Diffstat (limited to 'Source')
-rw-r--r--Source/CMakeLists.txt12
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx7
2 files changed, 11 insertions, 8 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 944197e..164df10 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -46,12 +46,12 @@ IF (WIN32)
ENDIF(NOT UNIX)
ENDIF (WIN32)
-#IF (UNIX)
-# INCLUDE (${CMAKE_ROOT}/Modules/FindCurses.cmake)
-# IF (CURSES_LIBRARY)
-# SUBDIRS(CursesDialog)
-# ENDIF (CURSES_LIBRARY)
-#ENDIF (UNIX)
+IF (UNIX)
+ INCLUDE (${CMAKE_ROOT}/Modules/FindCurses.cmake)
+ IF (CURSES_LIBRARY)
+ SUBDIRS(CursesDialog)
+ ENDIF (CURSES_LIBRARY)
+ENDIF (UNIX)
SOURCE_FILES(SRCS cmUnixMakefileGenerator.cxx)
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index 5663218..9e2c111 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -278,7 +278,8 @@ void cmCursesMainForm::RunCMake(bool generateMakefiles)
// copy from the list box to the cache manager
void cmCursesMainForm::FillCacheManagerFromUI()
{
-
+ std::string tmpString;
+
cmCacheManager::GetInstance()->GetCacheMap();
int size = m_Entries->size();
for(int i=0; i < size; i++)
@@ -288,7 +289,9 @@ void cmCursesMainForm::FillCacheManagerFromUI()
(*m_Entries)[i]->m_Key.c_str());
if (entry)
{
- entry->m_Value = (*m_Entries)[i]->m_Entry->GetValue();
+ tmpString = (*m_Entries)[i]->m_Entry->GetValue();
+ // Remove trailing spaces
+ entry->m_Value = tmpString.substr(0,tmpString.find_last_not_of(" ")+1);
}
}
}