mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #5214
5214: Use CMAKE_PROJECT_NAME instead of hardcoding ddnet r=def- a=ChillerDragon Output for ddnet is the same. But now it is easier and less conflicting for downstream projects to do rebranding. Co-authored-by: ChillerDragon <ChillerDragon@gmail.com>
This commit is contained in:
commit
f484adadb6
|
@ -647,28 +647,28 @@ if(CLIENT AND VULKAN)
|
|||
endif()
|
||||
|
||||
if(NOT(CURL_FOUND))
|
||||
message(SEND_ERROR "You must install Curl to compile DDNet")
|
||||
message(SEND_ERROR "You must install Curl to compile ${CMAKE_PROJECT_NAME}")
|
||||
endif()
|
||||
if(NOT(PYTHONINTERP_FOUND))
|
||||
message(SEND_ERROR "You must install Python to compile DDNet")
|
||||
message(SEND_ERROR "You must install Python to compile ${CMAKE_PROJECT_NAME}")
|
||||
endif()
|
||||
if(NOT(SQLite3_FOUND))
|
||||
message(SEND_ERROR "You must install SQLite3 to compile DDNet")
|
||||
message(SEND_ERROR "You must install SQLite3 to compile ${CMAKE_PROJECT_NAME}")
|
||||
endif()
|
||||
|
||||
if(MYSQL AND NOT(MYSQL_FOUND))
|
||||
message(SEND_ERROR "You must install MySQL to compile the DDNet server with MySQL support")
|
||||
message(SEND_ERROR "You must install MySQL to compile the ${CMAKE_PROJECT_NAME} server with MySQL support")
|
||||
endif()
|
||||
|
||||
if(WEBSOCKETS AND NOT(WEBSOCKETS_FOUND))
|
||||
message(SEND_ERROR "You must install libwebsockets to compile the DDNet server with websocket support")
|
||||
message(SEND_ERROR "You must install libwebsockets to compile the ${CMAKE_PROJECT_NAME} server with websocket support")
|
||||
endif()
|
||||
|
||||
if(UPNP AND NOT(MINIUPNPC_FOUND))
|
||||
message(SEND_ERROR "You must install miniupnpc to compile the DDNet server with UPnP support")
|
||||
message(SEND_ERROR "You must install miniupnpc to compile the ${CMAKE_PROJECT_NAME} server with UPnP support")
|
||||
endif()
|
||||
if(DISCORD AND NOT(DISCORDSDK_FOUND))
|
||||
message(SEND_ERROR "You must install the Discord SDK to compile the DDNet client with Discord support")
|
||||
message(SEND_ERROR "You must install the Discord SDK to compile the ${CMAKE_PROJECT_NAME} client with Discord support")
|
||||
endif()
|
||||
if(DISCORD_DYNAMIC)
|
||||
if(TARGET_OS STREQUAL "windows" OR TARGET_OS STREQUAL "mac")
|
||||
|
@ -679,22 +679,22 @@ if(DISCORD_DYNAMIC)
|
|||
endif()
|
||||
endif()
|
||||
if(CLIENT AND NOT(FREETYPE_FOUND))
|
||||
message(SEND_ERROR "You must install Freetype to compile the DDNet client")
|
||||
message(SEND_ERROR "You must install Freetype to compile the ${CMAKE_PROJECT_NAME} client")
|
||||
endif()
|
||||
if(CLIENT AND NOT(OGG_FOUND))
|
||||
message(SEND_ERROR "You must install Ogg to compile the DDNet client")
|
||||
message(SEND_ERROR "You must install Ogg to compile the ${CMAKE_PROJECT_NAME} client")
|
||||
endif()
|
||||
if(CLIENT AND NOT(OPUS_FOUND))
|
||||
message(SEND_ERROR "You must install Opus to compile the DDNet client")
|
||||
message(SEND_ERROR "You must install Opus to compile the ${CMAKE_PROJECT_NAME} client")
|
||||
endif()
|
||||
if(CLIENT AND NOT(OPUSFILE_FOUND))
|
||||
message(SEND_ERROR "You must install Opusfile to compile the DDNet client")
|
||||
message(SEND_ERROR "You must install Opusfile to compile the ${CMAKE_PROJECT_NAME} client")
|
||||
endif()
|
||||
if(CLIENT AND NOT(SDL2_FOUND))
|
||||
message(SEND_ERROR "You must install SDL2 to compile the DDNet client")
|
||||
message(SEND_ERROR "You must install SDL2 to compile the ${CMAKE_PROJECT_NAME} client")
|
||||
endif()
|
||||
if(TARGET_OS STREQUAL "android" AND CLIENT AND NOT(CRYPTO_FOUND))
|
||||
message(SEND_ERROR "You must install OpenSSL to compile the DDNet client")
|
||||
message(SEND_ERROR "You must install OpenSSL to compile the ${CMAKE_PROJECT_NAME} client")
|
||||
endif()
|
||||
if(NOT(GTEST_FOUND))
|
||||
if(DOWNLOAD_GTEST)
|
||||
|
@ -710,7 +710,7 @@ if(NOT(GTEST_FOUND))
|
|||
endif()
|
||||
|
||||
if(CLIENT AND VULKAN AND NOT(VULKAN_FOUND))
|
||||
message(SEND_ERROR "You must install Vulkan libraries to compile the DDNet client")
|
||||
message(SEND_ERROR "You must install Vulkan libraries to compile the ${CMAKE_PROJECT_NAME} client")
|
||||
endif()
|
||||
|
||||
if(TARGET_OS STREQUAL "windows")
|
||||
|
|
Loading…
Reference in a new issue