From 3247f01c5e185eed99113d92c1c2af0f2e068ba4 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 9 Sep 2020 09:52:04 +0200 Subject: [PATCH] CMake: Fix qt_apply_rpaths not erroring out when no target is given I accidentally noticed the message in a CI job, but it didn't fail the build because the FATAL_ERRO was considered as another text token to print, instead of a command keyword. Change-Id: I0e30ebacbed32d1017f9ded681cd6b15cbc32573 Reviewed-by: Joerg Bornemann --- cmake/QtRpathHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtRpathHelpers.cmake b/cmake/QtRpathHelpers.cmake index eeb837df8fc..6273de3eb6e 100644 --- a/cmake/QtRpathHelpers.cmake +++ b/cmake/QtRpathHelpers.cmake @@ -60,7 +60,7 @@ function(qt_apply_rpaths) qt_parse_all_arguments(arg "qt_apply_rpaths" "RELATIVE_RPATH" "TARGET;INSTALL_PATH" "" ${ARGN}) if(NOT arg_TARGET) - message(FATAL_ERRO "No target given to qt_apply_rpaths.") + message(FATAL_ERROR "No target given to qt_apply_rpaths.") else() set(target "${arg_TARGET}") endif()