mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	Use FindCurses to find curses libraries
- Some systems have the FindCurses.cmake module to find the curses/ncurses libraries using find_package(). And in some CheckLibraries is not very reliable, so as fallback FindCurses is now used if no other option works.
This commit is contained in:
		@@ -35,7 +35,8 @@ else()
 | 
				
			|||||||
  if (HAVE_LIBCURSES)
 | 
					  if (HAVE_LIBCURSES)
 | 
				
			||||||
    target_link_libraries(nvim curses)
 | 
					    target_link_libraries(nvim curses)
 | 
				
			||||||
  else()
 | 
					  else()
 | 
				
			||||||
    message(FATAL_ERROR "can't find something resembling -ltermcap")
 | 
					    find_package(Curses REQUIRED)
 | 
				
			||||||
 | 
					    target_link_libraries(nvim ${CURSES_LIBRARIES})
 | 
				
			||||||
  endif()
 | 
					  endif()
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user