This is allowed only when policy CMP0079 is set to NEW.
I met a problem in cmake.
CMake Error at ../../middleware/open_source/lwip/CMakeLists.txt:35 (target_link_libraries): Attempt to add link library "middleware__lwipcore" to target "unsc_rtos" which is not built in this directory. This is allowed only when policy CMP0079 is set to NEW.
As error clue, tried to use policy.
cmake_policy(SET CMP0079 NEW)
But new issue comes. This library will be building always even if there is not any change in source codes.
Best Regards, Bub Wei