diff --git a/cmake/modules/HexagonSDK.cmake b/cmake/modules/HexagonSDK.cmake index 2e5d244dfd02..ccf74fabfe05 100644 --- a/cmake/modules/HexagonSDK.cmake +++ b/cmake/modules/HexagonSDK.cmake @@ -166,8 +166,11 @@ function(_get_hexagon_sdk_property_impl "${_hexagon_sdk_root}/rtos/qurt/${_hexarch_dir}/include/posix" "${_hexagon_sdk_root}/rtos/qurt/${_hexarch_dir}/include/qurt" "${_hexagon_sdk_root}/ipc/fastrpc/rtld/ship/${_rtld_dir}" - "${_hexagon_sdk_root}/ipc/fastrpc/rtld/ship/inc" ) + _check_path_exists("${_hexagon_sdk_root}/ipc/fastrpc/rtld/ship/inc" _sdk_dlfcn) + if(_sdk_dlfcn) + list(APPEND _dirs "${_hexagon_sdk_root}/ipc/fastrpc/rtld/ship/inc") + endif() elseif(_property STREQUAL "QURT_LIB") set(_dirs "${_hexagon_sdk_root}/rtos/qurt/${_hexarch_dir}/lib/pic") elseif(_property STREQUAL "RPCMEM_ROOT")