Zynq remoteproc: update to use libmetal APIs
[processor-sdk/open-amp.git] / cmake / depends.cmake
1 find_package (Libmetal REQUIRED)
2 collect (PROJECT_INC_DIRS "${LIBMETAL_INCLUDE_DIR}")
3 collect (PROJECT_LIB_DIRS "${LIBMETAL_LIB_DIR}")
4 collect (PROJECT_LIB_DEPS "${LIBMETAL_LIB}")
6 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
7   check_include_files (stdatomic.h HAVE_STDATOMIC_H)
9 else ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
10   set (_saved_cmake_required_flags ${CMAKE_REQUIRED_FLAGS})
11   set (CMAKE_REQUIRED_FLAGS "-c")
12   check_include_files (stdatomic.h HAVE_STDATOMIC_H)
13   set (CMAKE_REQUIRED_FLAGS ${_saved_cmake_required_flags})
14 endif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
15 # vim: expandtab:ts=2:sw=2:smartindent