Skip to content

Commit

Permalink
cmake/ECM - sync to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Winter committed Apr 2, 2024
1 parent 6963654 commit 8bc49c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/ECM/modules/ECMGenerateHeaders.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ function(ECM_GENERATE_HEADERS camelcase_forwarding_headers_var)
endif()

set(_actualheader "${CMAKE_CURRENT_SOURCE_DIR}/${EGH_RELATIVE}${originalbasename}.${EGH_HEADER_EXTENSION}")
if (NOT EXISTS ${_actualheader})
get_source_file_property(_generated "${_actualheader}" GENERATED)
if (NOT _generated AND NOT EXISTS ${_actualheader})
message(FATAL_ERROR "Could not find \"${_actualheader}\"")
endif()

Expand Down

0 comments on commit 8bc49c9

Please sign in to comment.