CMake: Zynq: generic: update to use xil,metal lib
[processor-sdk/open-amp.git] / cmake / depends.cmake
index d8dddac9001313e5355652a76890b5e70fd6d925..477d90340bf52e1f8c524215c6b9d042cb081048 100644 (file)
@@ -1,9 +1,11 @@
 find_package (Libmetal REQUIRED)
 collect (PROJECT_INC_DIRS "${LIBMETAL_INCLUDE_DIR}")
 collect (PROJECT_LIB_DIRS "${LIBMETAL_LIB_DIR}")
+collect (PROJECT_LIB_DEPS "${LIBMETAL_LIB}")
 
 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
   check_include_files (stdatomic.h HAVE_STDATOMIC_H)
+
 else ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
   set (_saved_cmake_required_flags ${CMAKE_REQUIRED_FLAGS})
   set (CMAKE_REQUIRED_FLAGS "-c")