[client,sdl] use versioned resource location

if WITH_BINARY_VERSIONING is ON also use versioned resource locations.
This commit is contained in:
Armin Novak
2023-12-21 20:18:33 +01:00
committed by akallabeth
parent 523e2fb359
commit 2b654a8226

View File

@@ -62,6 +62,10 @@ if (SDL_USE_COMPILED_RESOURCES)
add_definitions(-DSDL_USE_COMPILED_RESOURCES)
else()
set(SDL_RESOURCE_ROOT ${CMAKE_INSTALL_FULL_DATAROOTDIR}/FreeRDP)
if (WITH_BINARY_VERSIONING)
string(APPEND SDL_RESOURCE_ROOT "${PROJECT_VERSION_MAJOR}")
endif()
add_definitions(-DSDL_RESOURCE_ROOT="${SDL_RESOURCE_ROOT}")
if (WITH_SDL_IMAGE_DIALOGS)