mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	Limit tampering with standard C++ library to Linux
Otherwise it breaks e.g. FreeBSD build where it is not needed at all
This commit is contained in:
		
							parent
							
								
									a802940616
								
							
						
					
					
						commit
						41e8ab5383
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -202,9 +202,11 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
 | 
			
		|||
  endif ()
 | 
			
		||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
 | 
			
		||||
  # more tweaks
 | 
			
		||||
  if (NOT (MSVC OR MSYS OR APPLE))
 | 
			
		||||
  if (LINUX)
 | 
			
		||||
    set (CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -stdlib=libstdc++" ) # required for <atomic>
 | 
			
		||||
    list(APPEND CMAKE_REQUIRED_LIBRARIES "stdc++") # required to link with -stdlib=libstdc++
 | 
			
		||||
  endif()
 | 
			
		||||
  if (NOT (MSVC OR MSYS OR APPLE))
 | 
			
		||||
    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-const-variable -Wno-overloaded-virtual -Wno-c99-extensions" )
 | 
			
		||||
  endif()
 | 
			
		||||
endif ()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue