mirror of
				https://github.com/Zelda64Recomp/Zelda64Recomp.git
				synced 2025-10-30 08:03:03 +00:00 
			
		
		
		
	Fixed cmake sometimes not linking required libraries on linux
This commit is contained in:
		
							parent
							
								
									7c37f8ef8e
								
							
						
					
					
						commit
						fab4f66903
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -254,8 +254,12 @@ if (LINUX)
 | 
			
		|||
 | 
			
		||||
    include_directories(${FREETYPE_LIBRARIES})
 | 
			
		||||
    target_link_libraries(Zelda64Recompiled PRIVATE ${FREETYPE_LIBRARIES})
 | 
			
		||||
 | 
			
		||||
    set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
 | 
			
		||||
    set(THREADS_PREFER_PTHREAD_FLAG TRUE)
 | 
			
		||||
    find_package(Threads REQUIRED)
 | 
			
		||||
    
 | 
			
		||||
    target_link_libraries(Zelda64Recompiled PRIVATE "-latomic -static-libstdc++")
 | 
			
		||||
    target_link_libraries(Zelda64Recompiled PRIVATE "-latomic -static-libstdc++" ${CMAKE_DL_LIBS} Threads::Threads)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
target_link_libraries(Zelda64Recompiled PRIVATE
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue