mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	Merge pull request #6459 from lat9nq/ubuntu-fixes
cmake: Improve Linux dependency checking for externals
This commit is contained in:
		
							
								
								
									
										11
									
								
								externals/libusb/CMakeLists.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								externals/libusb/CMakeLists.txt
									
									
									
									
										vendored
									
									
								
							@@ -5,6 +5,17 @@ if (MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux") OR APPLE)
 | 
			
		||||
    # GNU toolchains for some reason doesn't work with the later half of this CMakeLists after
 | 
			
		||||
    # updating to 1.0.24, so we do it the old-fashioned way for now.
 | 
			
		||||
 | 
			
		||||
    # Require autoconf and libtoolize here, rather than crash during compilation
 | 
			
		||||
    find_program(AUTOCONF autoconf)
 | 
			
		||||
    if ("${AUTOCONF}" STREQUAL "AUTOCONF-NOTFOUND")
 | 
			
		||||
        message(FATAL_ERROR "Required program `autoconf` not found.")
 | 
			
		||||
    endif()
 | 
			
		||||
 | 
			
		||||
    find_program(LIBTOOLIZE libtoolize)
 | 
			
		||||
    if ("${LIBTOOLIZE}" STREQUAL "LIBTOOLIZE-NOTFOUND")
 | 
			
		||||
        message(FATAL_ERROR "Required program `libtoolize` not found.")
 | 
			
		||||
    endif()
 | 
			
		||||
 | 
			
		||||
    set(LIBUSB_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/libusb")
 | 
			
		||||
    set(LIBUSB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/libusb")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user