diff --git a/CMakeLists.txt b/CMakeLists.txt index 376e779..5f94163 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,9 @@ set(CMAKE_CXX_EXTENSIONS OFF) find_package(Curses REQUIRED) find_library(TINFO_LIBRARY tinfo) +if(NOT TINFO_LIBRARY) + set(TINFO_LIBRARY "") +endif() set(INCLUDE_PATH ${CMAKE_SOURCE_DIR}/include) add_executable (roflcat src/roflcat.cpp src/cmd.cpp)