mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	Windows: FindLuaJit: fix libname. #3262
This commit is contained in:
		
				
					committed by
					
						
						Justin M. Keyes
					
				
			
			
				
	
			
			
			
						parent
						
							8bf141dea7
						
					
				
				
					commit
					d00d37b486
				
			@@ -31,9 +31,15 @@ if(LUAJIT_USE_STATIC)
 | 
			
		||||
    "${CMAKE_STATIC_LIBRARY_PREFIX}luajit-5.1${CMAKE_STATIC_LIBRARY_SUFFIX}")
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
list(APPEND LUAJIT_NAMES luajit-5.1)
 | 
			
		||||
if(MSVC)
 | 
			
		||||
  list(APPEND LUAJIT_NAMES lua51)
 | 
			
		||||
elseif(MINGW)
 | 
			
		||||
  list(APPEND LUAJIT_NAMES libluajit)
 | 
			
		||||
else()
 | 
			
		||||
  list(APPEND LUAJIT_NAMES luajit-5.1)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
find_library(LUAJIT_LIBRARY NAMES luajit-5.1
 | 
			
		||||
find_library(LUAJIT_LIBRARY NAMES ${LUAJIT_NAMES}
 | 
			
		||||
             PATHS ${PC_LUAJIT_LIBDIR} ${PC_LUAJIT_LIBRARY_DIRS}
 | 
			
		||||
             ${LIMIT_SEARCH})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user