App: Fix linking dependencies

Change-Id: Iddabe30cdad68601368393fd89b6d08199ec1660
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index 76e1a7e..e847b55 100755
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -286,6 +286,7 @@
         $<$<BOOL:${TEST_PSA_API}>:val_nspe>
         $<$<BOOL:${TEST_PSA_API}>:pal_nspe>
         $<$<BOOL:${TEST_PSA_API}>:test_combine>
+        tfm_api_ns
         tfm_log
 )
 
@@ -311,7 +312,6 @@
         platform_ns
         CMSIS_5_tfm_ns
         tfm_test_app
-        tfm_api_ns
         tfm_log
 )