Fix: add missing parameter check to t_cose

t_cose uses PSA Crypto API for crypto operations and it needs the
headers of a PSA Crypto implementation. The PSA_CRYPTO_API_INCLUDE
variable can be used to set the location of the dependency and the
cmake script was not verifying if this input is set. This lead to
hard-to debug build errors when the parameter was missing.
This is fixed now with a check and appropriate error message.

Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
Change-Id: Ifa7f7293c895109b4cc4c3e7482a900787dfc735
diff --git a/external/t_cose/t_cose.cmake b/external/t_cose/t_cose.cmake
index c616fac..8a186a0 100644
--- a/external/t_cose/t_cose.cmake
+++ b/external/t_cose/t_cose.cmake
@@ -43,6 +43,13 @@
 string(APPEND _cmake_fragment "\n${_cmake_fragment1}")
 unset(_cmake_fragment1)
 
+if (NOT DEFINED PSA_CRYPTO_API_INCLUDE)
+	string(CONCAT _msg "Mandatory parameter PSA_CRYPTO_API_INCLUDE is not defined. Please include a component which"
+					   " sets this variable or pass -DPSA_CRYPTO_API_INCLUDE=<path> where <path> is the location of"
+					   " PSA API headers.")
+	message(FATAL_ERROR ${_msg} )
+endif()
+
 translate_value_as_property(VALUE "${PSA_CRYPTO_API_INCLUDE}"
 							PROPERTY INTERFACE_INCLUDE_DIRECTORIES
 							RES _cmake_fragment1)