From 81b5c3b34d9420c91c2269e33bb991e705cd8d4e Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 7 Aug 2003 16:25:49 -0400 Subject: [PATCH] ENH: Fix dependencies for curses dialog --- CMakeLists.txt | 7 +++++++ Source/CMakeLists.txt | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54fb7f143..013711af3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,13 @@ SUBDIRS(Source/kwsys) SET(CMAKE_BUILD_WITH_CURL 1) SUBDIRS(Source/CTest/Curl) +IF (UNIX) + INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL) + IF (CURSES_LIBRARY) + SUBDIRS(Source/CursesDialog/form) + ENDIF (CURSES_LIBRARY) +ENDIF (UNIX) + SUBDIRS(Source Modules Templates Utilities) ENABLE_TESTING() diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 342689b78..35de8826c 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -134,7 +134,6 @@ ENDIF(CMAKE_BUILD_WITH_CURL) IF (UNIX) INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL) IF (CURSES_LIBRARY) - SUBDIRS(CursesDialog/form) INCLUDE(${CMake_SOURCE_DIR}/Source/CursesDialog/CMakeLists.txt) ENDIF (CURSES_LIBRARY) ENDIF (UNIX)