mirror of
				https://github.com/Ryujinx/SDL.git
				synced 2025-11-04 14:14:49 +00:00 
			
		
		
		
	CMake: fixed a failure to reset CMAKE_REQUIRED_FLAGS (thanks, Martin!).
This would break Emscripten builds with the CMake project files (etc). Fixes Bugzilla #3197.
This commit is contained in:
		
							parent
							
								
									c9927bbb17
								
							
						
					
					
						commit
						7e679ed2c1
					
				| 
						 | 
				
			
			@ -382,7 +382,7 @@ if(USE_GCC OR USE_CLANG)
 | 
			
		|||
 | 
			
		||||
  set(CMAKE_REQUIRED_FLAGS "-Wl,--no-undefined")
 | 
			
		||||
  check_c_compiler_flag("" HAVE_NO_UNDEFINED)
 | 
			
		||||
  set(CMAKE_REQUIRED_FLAGS)
 | 
			
		||||
  set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
 | 
			
		||||
  if(HAVE_NO_UNDEFINED)
 | 
			
		||||
    list(APPEND EXTRA_LDFLAGS "-Wl,--no-undefined")
 | 
			
		||||
  endif()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue