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

            Bug ID: 418905
           Summary: Unable to build as static library because of
                    interaction w/ GenerateExportHeader
           Product: frameworks-kirigami
           Version: Master
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: barto.charlie+kde_b...@gmail.com
  Target Milestone: Not decided

SUMMARY
It's not possible to build as a static library, because kirigami sets the
STATIC_LIBRARY variable to "1" when building as a static library, then it tries
to use GenerateExportHeader, which has code like the following:

get_property(type TARGET ${TARGET_LIBRARY} PROPERTY TYPE)
if(NOT ${TYPE} STREQUAL "STATIC_LIBRARY" ...)

this if statement fails, because the "${type}" parameter is expanded to
STATIC_LIBRARY, which is then expanded by the if statement to "1"!

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

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

Reply via email to