Skip to content

Commit

Permalink
If get through system readline library under, don't need -l flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
cindytsai committed Apr 12, 2024
1 parent 4c126b6 commit ca249e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ target_link_libraries(yt PRIVATE
${Python_LIBRARIES}
Python::NumPy
$<$<BOOL:${INTERACTIVE_MODE}>:${Readline_LIBRARY}>
$<$<BOOL:${INTERACTIVE_MODE}>:${Readline_LIBFLAGS}> # TODO: need to read from readline.pc Requires.private and Requires
$<$<BOOL:${INTERACTIVE_MODE}>:${Readline_LIBFLAGS}>
$<$<BOOL:${JUPYTER_KERNEL}>:xeus-zmq>
)

Expand Down
3 changes: 1 addition & 2 deletions vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ if (Readline_INCLUDE_DIR AND Readline_LIBRARY)
execute_process(COMMAND pkg-config --libs readline --static OUTPUT_VARIABLE Readline_LIBFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
set(Readline_LIBFLAGS ${Readline_LIBFLAGS} PARENT_SCOPE)
else ()
execute_process(COMMAND pkg-config --libs readline --static OUTPUT_VARIABLE Readline_LIBFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
set(Readline_LIBFLAGS ${Readline_LIBFLAGS} PARENT_SCOPE)
set(Readline_LIBFLAGS "" PARENT_SCOPE)
endif ()
message(STATUS "Found readline: ${Readline_LIBRARY} (link flags: ${Readline_LIBFLAGS})")
else ()
Expand Down

0 comments on commit ca249e3

Please sign in to comment.