Error out if bison is not found on non-Windows operating systems.
We cannot just default to use tools/bison.exe when it is not on Windows.
This commit is contained in:
		
							parent
							
								
									6c292d3ba7
								
							
						
					
					
						commit
						4fe1efa1a9
					
				| @ -66,8 +66,12 @@ set(HEADERS | |||||||
| 
 | 
 | ||||||
| find_package(BISON) | find_package(BISON) | ||||||
| if(NOT BISON_FOUND) | if(NOT BISON_FOUND) | ||||||
|     set(BISON_EXECUTABLE ../tools/bison.exe) |     if (WIN32) | ||||||
|     message("bison not found. Assuming it is at ${BISON_EXECUTABLE}") |         set(BISON_EXECUTABLE ../tools/bison.exe) | ||||||
|  |         message("bison not found. Assuming it is at ${BISON_EXECUTABLE}") | ||||||
|  |     else() | ||||||
|  |         message(FATAL_ERROR "bison required but not found. Please install via your package management tool.") | ||||||
|  |     endif() | ||||||
| endif() | endif() | ||||||
| 
 | 
 | ||||||
| # Always use a custom command since our use of --defines isn't assumed by CMake's BISON_TARGET, | # Always use a custom command since our use of --defines isn't assumed by CMake's BISON_TARGET, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Lei Zhang
						Lei Zhang