Zstd: Change package status to recommended

This commit is contained in:
Jonathan G Rennison 2021-03-01 23:08:23 +00:00
parent 44d786d8ce
commit b9332ee62c
2 changed files with 4 additions and 2 deletions

View File

@ -292,7 +292,7 @@ link_package(PNG TARGET PNG::PNG ENCOURAGED)
link_package(ZLIB TARGET ZLIB::ZLIB ENCOURAGED) link_package(ZLIB TARGET ZLIB::ZLIB ENCOURAGED)
link_package(LIBLZMA TARGET LibLZMA::LibLZMA ENCOURAGED) link_package(LIBLZMA TARGET LibLZMA::LibLZMA ENCOURAGED)
link_package(LZO) link_package(LZO)
link_package(ZSTD TARGET ZSTD::ZSTD ENCOURAGED) link_package(ZSTD TARGET ZSTD::ZSTD RECOMMENDED)
if(NOT OPTION_DEDICATED) if(NOT OPTION_DEDICATED)
link_package(Fluidsynth) link_package(Fluidsynth)

View File

@ -1,5 +1,5 @@
function(link_package NAME) function(link_package NAME)
cmake_parse_arguments(LP "ENCOURAGED" "TARGET" "" ${ARGN}) cmake_parse_arguments(LP "ENCOURAGED;RECOMMENDED" "TARGET" "" ${ARGN})
if(${NAME}_FOUND) if(${NAME}_FOUND)
string(TOUPPER "${NAME}" UCNAME) string(TOUPPER "${NAME}" UCNAME)
@ -19,5 +19,7 @@ function(link_package NAME)
endif() endif()
elseif(LP_ENCOURAGED) elseif(LP_ENCOURAGED)
message(WARNING "${NAME} not found; compiling OpenTTD without ${NAME} is strongly disencouraged") message(WARNING "${NAME} not found; compiling OpenTTD without ${NAME} is strongly disencouraged")
elseif(LP_RECOMMENDED)
message(WARNING "${NAME} not found; compiling OpenTTD without ${NAME} is not recommended")
endif() endif()
endfunction() endfunction()