mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Merge commit 'upstream/master~2'
This commit is contained in:
		
						commit
						ce6353f7d3
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -56,14 +56,19 @@ macro(copy_files_to_build_dir target dlllist_var)
 | 
			
		|||
	endif()
 | 
			
		||||
endmacro()
 | 
			
		||||
 | 
			
		||||
# 64-bit check
 | 
			
		||||
message(STATUS "CMAKE_SIZEOF_VOID_P=" ${CMAKE_SIZEOF_VOID_P})
 | 
			
		||||
# bitness check
 | 
			
		||||
set(SRB2_SYSTEM_BITS 0)
 | 
			
		||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
 | 
			
		||||
	message(STATUS "Target is 64-bit")
 | 
			
		||||
	set(SRB2_SYSTEM_BITS 64)
 | 
			
		||||
else()
 | 
			
		||||
endif()
 | 
			
		||||
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
 | 
			
		||||
	message(STATUS "Target is 32-bit")
 | 
			
		||||
	set(SRB2_SYSTEM_BITS 32)
 | 
			
		||||
endif()
 | 
			
		||||
if(${SRB2_SYSTEM_BITS} EQUAL 0)
 | 
			
		||||
	message(STATUS "Target bitness is unknown")
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
# OS macros
 | 
			
		||||
if (UNIX)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue