Browse Source

ENH: Fix dependencies for curses dialog

Andy Cedilnik 22 years ago
parent
commit
81b5c3b34d
2 changed files with 7 additions and 1 deletions
  1. 7 0
      CMakeLists.txt
  2. 0 1
      Source/CMakeLists.txt

+ 7 - 0
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()
 

+ 0 - 1
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)