fix #194 / linux needs to built with position independant code
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							9e54fd5f1a
						
					
				
				
					commit
					fc4a4bfb7c
				
			@@ -146,6 +146,10 @@ add_library( ixwebsocket STATIC
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
add_library ( ixwebsocket::ixwebsocket ALIAS ixwebsocket )
 | 
					add_library ( ixwebsocket::ixwebsocket ALIAS ixwebsocket )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
 | 
				
			||||||
 | 
					  set(CMAKE_POSITION_INDEPENDENT_CODE ON)
 | 
				
			||||||
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (USE_TLS)
 | 
					if (USE_TLS)
 | 
				
			||||||
    target_compile_definitions(ixwebsocket PUBLIC IXWEBSOCKET_USE_TLS)
 | 
					    target_compile_definitions(ixwebsocket PUBLIC IXWEBSOCKET_USE_TLS)
 | 
				
			||||||
    if (USE_MBED_TLS)
 | 
					    if (USE_MBED_TLS)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user