mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Do not search for client-specific packages if client is not being built
This commit is contained in:
		| @@ -451,12 +451,6 @@ if(TARGET zlib::zlib) | ||||
| 	add_library(ZLIB::ZLIB ALIAS zlib::zlib) | ||||
| endif() | ||||
|  | ||||
| set(FFMPEG_COMPONENTS avutil swscale avformat avcodec) | ||||
| if(APPLE_IOS AND NOT USING_CONAN) | ||||
| 	list(APPEND FFMPEG_COMPONENTS swresample) | ||||
| endif() | ||||
| find_package(ffmpeg COMPONENTS ${FFMPEG_COMPONENTS}) | ||||
|  | ||||
| option(FORCE_BUNDLED_MINIZIP "Force bundled Minizip library" OFF) | ||||
| if(NOT FORCE_BUNDLED_MINIZIP) | ||||
| 	find_package(minizip) | ||||
| @@ -465,6 +459,13 @@ if(NOT FORCE_BUNDLED_MINIZIP) | ||||
| 	endif() | ||||
| endif() | ||||
|  | ||||
| if (ENABLE_CLIENT) | ||||
| 	set(FFMPEG_COMPONENTS avutil swscale avformat avcodec) | ||||
| 	if(APPLE_IOS AND NOT USING_CONAN) | ||||
| 		list(APPEND FFMPEG_COMPONENTS swresample) | ||||
| 	endif() | ||||
| 	find_package(ffmpeg COMPONENTS ${FFMPEG_COMPONENTS}) | ||||
|  | ||||
| 	find_package(SDL2 REQUIRED) | ||||
| 	find_package(SDL2_image REQUIRED) | ||||
| 	if(TARGET SDL2_image::SDL2_image) | ||||
| @@ -478,6 +479,7 @@ find_package(SDL2_ttf REQUIRED) | ||||
| 	if(TARGET SDL2_ttf::SDL2_ttf) | ||||
| 		add_library(SDL2::TTF ALIAS SDL2_ttf::SDL2_ttf) | ||||
| 	endif() | ||||
| endif() | ||||
|  | ||||
| if(ENABLE_LOBBY) | ||||
| 	find_package(SQLite3 REQUIRED) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user