summaryrefslogtreecommitdiff
path: root/Source/FLTKDialog
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-28 14:53:08 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-28 14:53:08 -0400
commit61acb47f5458c1b3e3c909e31867240a8219efaf (patch)
tree8af16876bed939c630148d82e2ce229c8c66bc38 /Source/FLTKDialog
parentaec9f9eaa9d1107d3762d1251bf10592afdb26cb (diff)
downloadcmake-61acb47f5458c1b3e3c909e31867240a8219efaf.tar.gz
BUG: fix for sgi compiler
Diffstat (limited to 'Source/FLTKDialog')
-rw-r--r--Source/FLTKDialog/CMakeLists.txt6
-rw-r--r--Source/FLTKDialog/CMakeSetupGUIImplementation.cxx1
-rw-r--r--Source/FLTKDialog/FLTKPropertyItemRow.cxx2
-rw-r--r--Source/FLTKDialog/FLTKPropertyList.cxx1
4 files changed, 7 insertions, 3 deletions
diff --git a/Source/FLTKDialog/CMakeLists.txt b/Source/FLTKDialog/CMakeLists.txt
index 4c5b273195..1ab9374bb6 100644
--- a/Source/FLTKDialog/CMakeLists.txt
+++ b/Source/FLTKDialog/CMakeLists.txt
@@ -23,3 +23,9 @@ INCLUDE_DIRECTORIES(${FLTK_INCLUDE_PATH})
ADD_EXECUTABLE(CMakeSetup SRCS)
INSTALL_TARGETS (/bin CMakeSetup)
+
+IF(CMAKE_HAS_X)
+LINK_LIBRARIES(-lXt -lm)
+LINK_LIBRARIES(${CMAKE_X_LIBS})
+ADD_DEFINITIONS(${CMAKE_X_CFLAGS})
+ENDIF(CMAKE_HAS_X) \ No newline at end of file
diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
index 7f1a20f7a3..7754ba44c2 100644
--- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
+++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx
@@ -3,7 +3,6 @@
#include "FL/fl_file_chooser.H"
#include "FL/filename.H"
#include "FL/fl_ask.H"
-#include "cstring"
#include "../cmCacheManager.h"
#include "../cmMakefile.h"
#include <iostream>
diff --git a/Source/FLTKDialog/FLTKPropertyItemRow.cxx b/Source/FLTKDialog/FLTKPropertyItemRow.cxx
index 3c6f591c03..d1f455c8f7 100644
--- a/Source/FLTKDialog/FLTKPropertyItemRow.cxx
+++ b/Source/FLTKDialog/FLTKPropertyItemRow.cxx
@@ -12,7 +12,7 @@
#include "../cmCacheManager.h"
#include "FLTKPropertyList.h"
#include "CMakeSetupGUIImplementation.h"
-#include <cstdio>
+
namespace fltk {
diff --git a/Source/FLTKDialog/FLTKPropertyList.cxx b/Source/FLTKDialog/FLTKPropertyList.cxx
index 8422f0730d..70a625596e 100644
--- a/Source/FLTKDialog/FLTKPropertyList.cxx
+++ b/Source/FLTKDialog/FLTKPropertyList.cxx
@@ -9,7 +9,6 @@
#include "FL/Fl_Color_Chooser.H"
#include "FL/fl_ask.H"
#include "FL/Fl_Button.H"
-#include <cstdio>
#include "CMakeSetupGUIImplementation.h"