Merge pull request #2395 from nihui/patch-4
Find python interpreter from host when cross-compiling
This commit is contained in:
		
						commit
						d091728a67
					
				| @ -228,9 +228,15 @@ function(glslang_set_link_args TARGET) | ||||
|     endif() | ||||
| endfunction(glslang_set_link_args) | ||||
| 
 | ||||
| if(NOT COMMAND find_host_package) | ||||
|     macro(find_host_package) | ||||
|         find_package(${ARGN}) | ||||
|     endmacro() | ||||
| endif() | ||||
| 
 | ||||
| # CMake needs to find the right version of python, right from the beginning, | ||||
| # otherwise, it will find the wrong version and fail later | ||||
| find_package(PythonInterp 3 REQUIRED) | ||||
| find_host_package(PythonInterp 3 REQUIRED) | ||||
| 
 | ||||
| # Root directory for build-time generated include files | ||||
| set(GLSLANG_GENERATED_INCLUDEDIR "${CMAKE_BINARY_DIR}/include") | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 John Kessenich
						John Kessenich