mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Revert "Update CMakeLists.txt, remove CMAKE_SIZEOF_VOID_P check"
This reverts commit 7d14342a8f.
			
			
This commit is contained in:
		
							parent
							
								
									7d14342a8f
								
							
						
					
					
						commit
						4cb71746a7
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -54,6 +54,14 @@ macro(copy_files_to_build_dir target dlllist_var)
 | 
			
		|||
	endif()
 | 
			
		||||
endmacro()
 | 
			
		||||
 | 
			
		||||
# 64-bit check
 | 
			
		||||
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
 | 
			
		||||
	message(STATUS "Target is 64-bit")
 | 
			
		||||
	set(SRB2_SYSTEM_BITS 64)
 | 
			
		||||
else()
 | 
			
		||||
	set(SRB2_SYSTEM_BITS 32)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
# OS macros
 | 
			
		||||
if (UNIX)
 | 
			
		||||
	add_definitions(-DUNIXCOMMON)
 | 
			
		||||
| 
						 | 
				
			
			@ -65,6 +73,9 @@ endif()
 | 
			
		|||
 | 
			
		||||
if(${CMAKE_SYSTEM} MATCHES "Linux")
 | 
			
		||||
	add_definitions(-DLINUX)
 | 
			
		||||
	if(${SRB2_SYSTEM_BITS} EQUAL 64)
 | 
			
		||||
		add_definitions(-DLINUX64)
 | 
			
		||||
	endif()
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
if(${CMAKE_SYSTEM} MATCHES "Darwin")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue