Actions
Support Request #15569
closedADTF_DISPLAY_TOOLBOXConfig.cmake required ciomponents and importprefix
Status:
Closed
Priority:
Normal
Customer:
CARIAD
Department:
Requester's Priority:
Normal
Support Level:
3rd Level
Resolution:
Known Feature Request
Product Issue Numbers:
Affected Products:
Platform:
Windows 10 64bit
Topic:
DisplayTB::Common
FAQ Links:
Description
Supportanfrage
Auch wir sind darauf reingefallen, dass man nicht zwei Komponenten gleichzeitig aus der DisplayToolbox 3.6 suchen lassen kann. z.B: find_package(ADTF_DISPLAY_TOOLBOX REQUIRED COMPONENTS base mixinextension graphics drawer)
Das Problem ist schon seit min. v1.5 bekannt, aber leider immer noch nicht gefixt - obwohl es noch nur ein Einzeler wäre!
Siehe #13539, #14832, [ADISTB-1141]
Mir ist aber noch ein zweites Problem aufgefallen:
Es wird auf die falschen DisplayToolbox_FIND_REQUIRED_*-Variablen zugegriffen. Das muss ADTF_DISPLAY_TOOLBOX_FIND_REQUIRED_* heißen.
Mein Vorschlag für einen Patch, der - zumindest bei mir - beide Probleme behebt:
$ diff ADTF_DISPLAY_TOOLBOXConfig.cmake.org ADTF_DISPLAY_TOOLBOXConfig.cmake 6,7d5 < get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) < 10c8,9 < if(DisplayToolbox_FIND_REQUIRED_${component}) --- > get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) > if(ADTF_DISPLAY_TOOLBOX_FIND_REQUIRED_${component}) 16a16,17 > > unset(_IMPORT_PREFIX)
Lösung
Fix erfolgt mit ADTF Display Toolbox 3.7.0
Actions