From 3cd4aa461e424c3571f065c2f2cd2dfa5753354c Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 21 Apr 2017 20:21:32 +0100 Subject: [PATCH] Fix the linking error occurring sometimes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit How the hell this did even compile on my other machine? \_(ツ)_/¯ --- cmake/modules/FindSourceHighlight.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/FindSourceHighlight.cmake b/cmake/modules/FindSourceHighlight.cmake index 4fd69c0..f9df81b 100644 --- a/cmake/modules/FindSourceHighlight.cmake +++ b/cmake/modules/FindSourceHighlight.cmake @@ -28,7 +28,7 @@ find_library(SourceHighlight_LIBRARIES if(SourceHighlight_INCLUDE_DIR AND SourceHighlight_LIBRARIES AND Ncurses_LIBRARY) set(SourceHighlight_FOUND ON) else(SourceHighlight_INCLUDE_DIR AND SourceHighlight_LIBRARIES AND Ncurses_LIBRARY) - find_library(SourceHighlight_LIBRARIES NAMES readline) + find_library(SourceHighlight_LIBRARIES NAMES source-highlight) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(SourceHighlight DEFAULT_MSG SourceHighlight_INCLUDE_DIR SourceHighlight_LIBRARIES ) mark_as_advanced(SourceHighlight_INCLUDE_DIR SourceHighlight_LIBRARIES)