summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthew Cline2011-07-07 00:16:48 -0700
committerMatthew Cline2011-07-07 00:16:48 -0700
commitcecbf6037568f20a5b5a342ce8a29ea8cf9cc5fc (patch)
treebdbc55552f2838983d8fa7226ff028563879f41f /CMakeLists.txt
parent5a3b02e9e48791eccc3b9b200a33a19d42a643d6 (diff)
downloaddfhack-cecbf6037568f20a5b5a342ce8a29ea8cf9cc5fc.tar.gz
dfhack-cecbf6037568f20a5b5a342ce8a29ea8cf9cc5fc.tar.bz2
dfhack-cecbf6037568f20a5b5a342ce8a29ea8cf9cc5fc.tar.xz
Added option BUILD_NO_CURSES
You can now do "cmake .. -DBUILD_NO_CURSES=ON" to prevent curses tools from being compiled, since there's a problem using mvwaddwstr() on some Linux distributions.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 173ea571..97c1aedf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -145,6 +145,7 @@ OPTION(BUILD_DFHACK_DOXYGEN "Create doxygen documentation for developers" ON)
OPTION(BUILD_DFHACK_SUPPORTED "Build the supported tools." ON)
OPTION(BUILD_DFHACK_EXAMPLES "Build example tools" OFF)
OPTION(BUILD_DFHACK_PLAYGROUND "Build tools from the playground folder" OFF)
+OPTION(BUILD_NO_CURSES "Don't build tools requiring curses" OFF)
include_directories (${dfhack_SOURCE_DIR}/library/include/)
include_directories (${dfhack_SOURCE_DIR}/library/shm/)
@@ -188,7 +189,7 @@ ENDMACRO()
# same as above builds a curses tool instead of plain terminal one.
MACRO(DFHACK_CURSES_TOOL TOOL_NAME TOOL_SOURCES)
- IF(Curses_FOUND)
+ IF(Curses_FOUND AND NOT BUILD_NO_CURSES)
ADD_EXECUTABLE(${TOOL_NAME} ${TOOL_SOURCES})
TARGET_LINK_LIBRARIES(${TOOL_NAME} dfhack curses)
if(DEFINED LOCAL_DEPNAME)