mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Zstd: Change package status to recommended
This commit is contained in:
parent
44d786d8ce
commit
b9332ee62c
@ -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)
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user