Fixing problems on Sun (name collusions between STL and curses) and disabling curses temporarily.

This commit is contained in:
Berk Geveci 2001-11-05 11:52:27 -05:00
parent 830bb67caf
commit c09d072be3
7 changed files with 19 additions and 15 deletions

View File

@ -46,12 +46,12 @@ IF (WIN32)
ENDIF(NOT UNIX)
ENDIF (WIN32)
IF (UNIX)
INCLUDE (${CMAKE_ROOT}/Modules/FindCurses.cmake)
IF (CURSES_LIBRARY AND FORM_LIBRARY)
SUBDIRS(CursesDialog)
ENDIF (CURSES_LIBRARY AND FORM_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)

View File

@ -1,3 +1,5 @@
SUBDIRS(form)
SOURCE_FILES( CURSES_SRCS
cmCursesBoolWidget
cmCursesCacheEntryComposite
@ -13,6 +15,8 @@ SOURCE_FILES( CURSES_SRCS
)
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_PATH})
LINK_LIBRARIES(${CURSES_LIBRARY} ${FORM_LIBRARY})
INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source/CursesDialog/form/)
LINK_LIBRARIES(${CURSES_LIBRARY})
LINK_LIBRARIES(cmForm)
ADD_EXECUTABLE(ccurses CURSES_SRCS)

View File

@ -1,8 +1,8 @@
#ifndef __cmCursesCacheEntryComposite_h
#define __cmCursesCacheEntryComposite_h
#include "cmCursesLabelWidget.h"
#include "../cmCacheManager.h"
#include "cmCursesLabelWidget.h"
class cmCursesCacheEntryComposite
{

View File

@ -1,9 +1,9 @@
#ifndef __cmCursesLabelWidget_h
#define __cmCursesLabelWidget_h
#include "cmCursesWidget.h"
#include <curses.h>
#include <form.h>
#include "cmCursesWidget.h"
class cmCursesLabelWidget : public cmCursesWidget

View File

@ -1,3 +1,6 @@
#include "../cmCacheManager.h"
#include "../cmSystemTools.h"
#include "../cmake.h"
#include "cmCursesMainForm.h"
#include "cmCursesStringWidget.h"
#include "cmCursesLabelWidget.h"
@ -6,9 +9,6 @@
#include "cmCursesFilePathWidget.h"
#include "cmCursesDummyWidget.h"
#include "cmCursesCacheEntryComposite.h"
#include "../cmCacheManager.h"
#include "../cmSystemTools.h"
#include "../cmake.h"
cmCursesMainForm::cmCursesMainForm(const char* whereSource,
bool newCache) :

View File

@ -1,10 +1,10 @@
#ifndef __cmCursesMainForm_h
#define __cmCursesMainForm_h
#include <curses.h>
#include <form.h>
#include "../cmStandardIncludes.h"
#include "cmCursesForm.h"
#include <curses.h>
#include <form.h>
class cmCursesCacheEntryComposite;

View File

@ -1,9 +1,9 @@
#ifndef __cmCursesWidget_h
#define __cmCursesWidget_h
#include "../cmCacheManager.h"
#include <curses.h>
#include <form.h>
#include "../cmCacheManager.h"
class cmCursesWidget
{