From d6cfa6833375b76a24f8f53b3b6805aec41ba739 Mon Sep 17 00:00:00 2001 From: pappeste Date: Thu, 27 May 2021 15:04:17 -0700 Subject: [PATCH] Reverting error check and comment --- cmake/LYWrappers.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/LYWrappers.cmake b/cmake/LYWrappers.cmake index bef3b25328..48423f3575 100644 --- a/cmake/LYWrappers.cmake +++ b/cmake/LYWrappers.cmake @@ -692,7 +692,9 @@ endfunction() # given a target name, returns the "real" name of the target if its an alias. # this function recursively de-aliases function(ly_de_alias_target target_name output_variable_name) + # its not okay to call get_target_property on a non-existent target if (NOT TARGET ${target_name}) + message(FATAL_ERROR "ly_de_alias_target called on non-existent target: ${target_name}") endif() while(target_name)