Skip to content

Commit

Permalink
Fixed set WITH_READLINE issue
Browse files Browse the repository at this point in the history
And make the output message more clear for readline missing.
  • Loading branch information
nanjj committed Jun 1, 2023
1 parent 49c8094 commit 1875280
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ if (WITH_READLINE)
find_path(READLINE_INCLUDE_DIR readline/readline.h)
find_library(READLINE_LIBRARY NAMES readline)
if (NOT (READLINE_INCLUDE_DIR AND READLINE_LIBRARY))
set(WITH_READLINE False CACHE FORCE)
set(WITH_READLINE False CACHE BOOL "No readline library found" FORCE)
endif ()
endif (WITH_READLINE)

if (NOT WITH_READLINE)
message(FATAL_ERROR "sdcv require readline, "
"make sure that you install it")
endif()

option(ENABLE_NLS "Enable NLS support" True)

set(sdcv_SRCS
Expand Down

0 comments on commit 1875280

Please sign in to comment.