Add guards preventing various illogical combinations of BUILD_* options
This commit is contained in:
parent
2c893f2fc2
commit
271fa26ab4
|
|
@ -2,6 +2,10 @@ if(NOT USE_HTTP OR WIN32)
|
|||
return()
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_CLIENT)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(INTERNAL_CURL_DIR ${SOURCE_DIR}/thirdparty/curl-8.15.0)
|
||||
|
||||
find_package(CURL QUIET)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ if(NOT USE_FREETYPE)
|
|||
return()
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_RENDERER_GL1 AND NOT BUILD_RENDERER_GL2)
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_package(Freetype REQUIRED)
|
||||
|
||||
list(APPEND RENDERER_INCLUDE_DIRS ${FREETYPE_INCLUDE_DIRS})
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
if(NOT BUILD_RENDERER_GL1 AND NOT BUILD_RENDERER_GL2)
|
||||
return()
|
||||
endif()
|
||||
|
||||
include(utils/disable_warnings)
|
||||
include(utils/find_include_dirs)
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ if(NOT USE_CODEC_VORBIS)
|
|||
return()
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_CLIENT)
|
||||
return()
|
||||
endif()
|
||||
|
||||
include(utils/disable_warnings)
|
||||
|
||||
set(INTERNAL_OGG_DIR ${SOURCE_DIR}/thirdparty/libogg-1.3.6)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ if(NOT USE_OPENAL)
|
|||
return()
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_CLIENT)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(INTERNAL_OPENAL_DIR ${SOURCE_DIR}/thirdparty/openal-soft-1.24.3)
|
||||
|
||||
find_package(OpenAL QUIET)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ if(NOT USE_CODEC_OPUS)
|
|||
return()
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_CLIENT)
|
||||
return()
|
||||
endif()
|
||||
|
||||
include(utils/disable_warnings)
|
||||
include(utils/find_include_dirs)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
if(NOT BUILD_CLIENT)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(INTERNAL_SDL_DIR ${SOURCE_DIR}/thirdparty/SDL2-2.32.8)
|
||||
|
||||
include(utils/arch)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,10 @@ if(NOT USE_CODEC_VORBIS)
|
|||
return()
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_CLIENT)
|
||||
return()
|
||||
endif()
|
||||
|
||||
include(utils/disable_warnings)
|
||||
|
||||
set(INTERNAL_VORBIS_DIR ${SOURCE_DIR}/thirdparty/libvorbis-1.3.7)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
if(NOT BUILD_RENDERER_GL1)
|
||||
if(NOT BUILD_CLIENT OR NOT BUILD_RENDERER_GL1)
|
||||
return()
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
if(NOT BUILD_RENDERER_GL2)
|
||||
if(NOT BUILD_CLIENT OR NOT BUILD_RENDERER_GL2)
|
||||
return()
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user