diff options
author | Brad King <brad.king@kitware.com> | 2006-02-08 15:13:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-08 15:13:13 (GMT) |
commit | 6fe45fe9c3348645a0fe145e1f32c487829cea64 (patch) | |
tree | 42b6cdc2fdf5eb5febc18587eb39d6a51601cb54 /Source | |
parent | dd710c94827b981dbcf7d723303963403bac65ae (diff) | |
download | CMake-6fe45fe9c3348645a0fe145e1f32c487829cea64.zip CMake-6fe45fe9c3348645a0fe145e1f32c487829cea64.tar.gz CMake-6fe45fe9c3348645a0fe145e1f32c487829cea64.tar.bz2 |
ENH: Added option BUILD_CursesDialog if curses is found. This allows people to disable building the dialog even when curses is found.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMakeLists.txt | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 023a718..c7ef79c 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -291,12 +291,9 @@ ADD_EXECUTABLE(cpack CPack/cpack.cxx) TARGET_LINK_LIBRARIES(cpack CPackLib) # Curses GUI -IF (UNIX) - INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL) - IF (CURSES_LIBRARY) - INCLUDE(${CMake_SOURCE_DIR}/Source/CursesDialog/CMakeLists.txt) - ENDIF (CURSES_LIBRARY) -ENDIF (UNIX) +IF(BUILD_CursesDialog) + INCLUDE(${CMake_SOURCE_DIR}/Source/CursesDialog/CMakeLists.txt) +ENDIF(BUILD_CursesDialog) # MFC GUI # MFC libraries are only available on Visual Studio |