[server,sample] fix resource location

if binary versioning is enabled the installation path was wrong.
This commit is contained in:
akallabeth 2024-02-08 09:18:59 +01:00 committed by akallabeth
parent 897f0adcae
commit e8d1bc5f4b
1 changed files with 3 additions and 2 deletions

View File

@ -48,9 +48,10 @@ if (WIN32)
set ( SRCS ${SRCS} ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
endif()
set(SAMPLE_RESOURCE_ROOT ${CMAKE_INSTALL_FULL_DATAROOTDIR}/FreeRDP/images)
if (WITH_BINARY_VERSIONING)
string(APPEND SAMPLE_RESOURCE_ROOT "${PROJECT_VERSION_MAJOR}")
set(SAMPLE_RESOURCE_ROOT ${CMAKE_INSTALL_FULL_DATAROOTDIR}/FreeRDP${FREERDP_VERSION_MAJOR}/images)
else()
set(SAMPLE_RESOURCE_ROOT ${CMAKE_INSTALL_FULL_DATAROOTDIR}/FreeRDP/images)
endif()
set(SAMPLE_ICONS