Skip to content
Snippets Groups Projects
Commit 642bcc21 authored by Simon Praetorius's avatar Simon Praetorius
Browse files

Reverse search for the export name in the full target name

parent 45389dfa
No related branches found
No related tags found
1 merge request!1266Extract the namespace from the EXPORT_NAME
Pipeline #62882 passed
Pipeline: Dune Nightly Test

#62883

    ......@@ -316,7 +316,8 @@ endif()
    foreach(_target ${${ProjectName}_INTERFACE_LIBRARIES})
    # find namespaces: alias without export name
    get_target_property(_export_name ${_target} EXPORT_NAME)
    string(REPLACE "::${_export_name}" "::" _namespace ${_target})
    string(FIND "${_target}" "${_export_name}" _pos_export_name REVERSE)
    string(SUBSTRING "${_target}" 0 ${_pos_export_name} _namespace)
    list(APPEND _namespaces ${_namespace})
    endforeach()
    list(REMOVE_DUPLICATES _namespaces)
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment