Milestone 5: deliver embedded RDP sessions and lifecycle hardening
This commit is contained in:
14
third_party/FreeRDP/cmake/GetSysconfDir.cmake
vendored
Normal file
14
third_party/FreeRDP/cmake/GetSysconfDir.cmake
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
option(FREERDP_USE_VENDOR_PRODUCT_CONFIG_DIR "Use <vendor>/<product> path for resources" OFF)
|
||||
|
||||
function(get_sysconf_dir name result)
|
||||
set(CONF_FILE ${PRODUCT})
|
||||
if(WITH_RESOURCE_VERSIONING)
|
||||
string(APPEND CONF_FILE "${FREERDP_VERSION_MAJOR}")
|
||||
endif()
|
||||
if(FREERDP_USE_VENDOR_PRODUCT_CONFIG_DIR)
|
||||
string(PREPEND CONF_FILE "${VENDOR}/")
|
||||
endif()
|
||||
string(PREPEND CONF_FILE "${CMAKE_INSTALL_FULL_SYSCONFDIR}/")
|
||||
string(APPEND CONF_FILE "${name}")
|
||||
set(${result} ${CONF_FILE} PARENT_SCOPE)
|
||||
endfunction()
|
||||
Reference in New Issue
Block a user