https://bugs.kde.org/show_bug.cgi?id=523592

            Bug ID: 523592
           Summary: INITIALIZE_CODE_FROM_VARIABLE for
                    ecm_qtdesignerplugin_widget()  is not working as
                    reported
    Classification: Frameworks and Libraries
           Product: extra-cmake-modules
      Version First 5.115.0
       Reported In:
          Platform: unspecified
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 194663
  --> https://bugs.kde.org/attachment.cgi?id=194663&action=edit
Fixed version

Specifying a string variable with initialization code for
INITIALIZE_CODE_FROM_VARIABLE in the ecm_qtdesignerplugin_widget() does not
cause the code to be injected in the generated file.

Reason: incorrect variable reference in function implementation.

Solution: replace line 267.

Version 5.115.0 (installed on my system):
set(ECM_QTDESIGNERPLUGIN_${widget}_INITIALIZE_CODE
"${INITIALIZE_CODE_FROM_VARIABLE}" PARENT_SCOPE)

Version 6.28.0 (git):
set(ECM_QTDESIGNERPLUGIN_${widget}_INITIALIZE_CODE
"${${INITIALIZE_CODE_FROM_VARIABLE}}" PARENT_SCOPE)

Fixed version (works for me):
set(ECM_QTDESIGNERPLUGIN_${widget}_INITIALIZE_CODE
"${${ARGS_INITIALIZE_CODE_FROM_VARIABLE}}" PARENT_SCOPE)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to