Force enable MySQL
This commit is contained in:
		
							parent
							
								
									65dad8e9cb
								
							
						
					
					
						commit
						edc0a9db2b
					
				| @ -199,8 +199,6 @@ if(HAVE_OPEN_SSL) | ||||
|             openssl::crypto::static) | ||||
| endif() | ||||
| 
 | ||||
| find_package(mysql) | ||||
| 
 | ||||
| add_library(TeaSpeak STATIC ${SOURCE_FILES} ${HEADER_FILES}) | ||||
| target_link_libraries(TeaSpeak PUBLIC | ||||
|         threadpool::static jsoncpp_lib | ||||
| @ -210,13 +208,19 @@ target_link_libraries(TeaSpeak PUBLIC | ||||
|         dl | ||||
| ) | ||||
| 
 | ||||
| find_package(mysql REQUIRED) | ||||
| set(mysql_FOUND ON) | ||||
| message("${mysql_FOUND}") | ||||
| if(mysql_FOUND) | ||||
|     message("Found MySQL") | ||||
|     target_link_libraries(TeaSpeak PUBLIC | ||||
|             mysql::client::static | ||||
|     ) | ||||
|     target_compile_options(TeaSpeak PRIVATE "-Wall" "-DHAVE_MYSQL_H") | ||||
| else() | ||||
|     message("Building without MySQL Support") | ||||
| endif() | ||||
| 
 | ||||
| if (TEASPEAK_SERVER) | ||||
|     target_link_libraries(TeaSpeak PUBLIC CXXTerminal::static) | ||||
| endif () | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user