mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	build: relax find_package() version spec
We need a way to say "Lua 5.1.x" is required. "5.1 EXACT" does not match 5.1.5, so it's useless. https://github.com/neovim/neovim/pull/9197#discussion_r230962070
This commit is contained in:
		@@ -368,7 +368,7 @@ include_directories(SYSTEM ${MSGPACK_INCLUDE_DIRS})
 | 
				
			|||||||
option(PREFER_LUA "Prefer Lua over LuaJIT in the nvim executable." OFF)
 | 
					option(PREFER_LUA "Prefer Lua over LuaJIT in the nvim executable." OFF)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if(PREFER_LUA)
 | 
					if(PREFER_LUA)
 | 
				
			||||||
  find_package(Lua 5.1 EXACT REQUIRED)
 | 
					  find_package(Lua 5.1 REQUIRED)
 | 
				
			||||||
  set(LUA_PREFERRED_INCLUDE_DIRS ${LUA_INCLUDE_DIR})
 | 
					  set(LUA_PREFERRED_INCLUDE_DIRS ${LUA_INCLUDE_DIR})
 | 
				
			||||||
  set(LUA_PREFERRED_LIBRARIES ${LUA_LIBRARIES})
 | 
					  set(LUA_PREFERRED_LIBRARIES ${LUA_LIBRARIES})
 | 
				
			||||||
  # Passive (not REQUIRED): if LUAJIT_FOUND is not set, nvim-test is skipped.
 | 
					  # Passive (not REQUIRED): if LUAJIT_FOUND is not set, nvim-test is skipped.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user