mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	Unset CMAKE_REQUIRED_* after they're done being used
As of CMake 3.12, check_include_files() also link the check executable against the libraries listed in CMAKE_REQUIRED_LIBRARIES. Therefore we should unset the CMAKE_REQUIRED_* variables after each respective use to avoid them unnecessarily bleeding into other checks.
This commit is contained in:
		| @@ -389,6 +389,7 @@ main(void) | |||||||
|   return MSGPACK_OBJECT_FLOAT32; |   return MSGPACK_OBJECT_FLOAT32; | ||||||
| } | } | ||||||
| " MSGPACK_HAS_FLOAT32) | " MSGPACK_HAS_FLOAT32) | ||||||
|  | unset(CMAKE_REQUIRED_LIBRARIES) | ||||||
| if(MSGPACK_HAS_FLOAT32) | if(MSGPACK_HAS_FLOAT32) | ||||||
|   add_definitions(-DNVIM_MSGPACK_HAS_FLOAT32) |   add_definitions(-DNVIM_MSGPACK_HAS_FLOAT32) | ||||||
| endif() | endif() | ||||||
| @@ -410,6 +411,8 @@ if(FEAT_TUI) | |||||||
|     return unibi_num_from_var(unibi_var_from_num(0)); |     return unibi_num_from_var(unibi_var_from_num(0)); | ||||||
|   } |   } | ||||||
|   " UNIBI_HAS_VAR_FROM) |   " UNIBI_HAS_VAR_FROM) | ||||||
|  |   unset(CMAKE_REQUIRED_INCLUDES) | ||||||
|  |   unset(CMAKE_REQUIRED_LIBRARIES) | ||||||
|   if(UNIBI_HAS_VAR_FROM) |   if(UNIBI_HAS_VAR_FROM) | ||||||
|     add_definitions(-DNVIM_UNIBI_HAS_VAR_FROM) |     add_definitions(-DNVIM_UNIBI_HAS_VAR_FROM) | ||||||
|   endif() |   endif() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 James McCoy
					James McCoy