make/ECMGenerateHeaders.cmake - avoid uninit value

see upstream MR at:
https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/161
This commit is contained in:
Allen Winter
2021-07-14 16:00:15 -04:00
parent 214dbdf359
commit 1539d7233b

View File

@@ -217,7 +217,7 @@ function(ECM_GENERATE_HEADERS camelcase_forwarding_headers_var)
endif()
set(${camelcase_forwarding_headers_var} ${${camelcase_forwarding_headers_var}} PARENT_SCOPE)
if (NOT EGH_REQUIRED_HEADERS STREQUAL "")
if (EGH_REQUIRED_HEADERS)
set(${EGH_REQUIRED_HEADERS} ${${EGH_REQUIRED_HEADERS}} ${_REQUIRED_HEADERS} PARENT_SCOPE)
endif ()
endfunction()