From e8dcd8c2fcbd57e4bf8e373a7a428cb08f682774 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 28 Aug 2019 21:51:31 -0400 Subject: [PATCH] cmake nuttx ignore linking target warning --- platforms/nuttx/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platforms/nuttx/CMakeLists.txt b/platforms/nuttx/CMakeLists.txt index fb6b630d24..574526535c 100644 --- a/platforms/nuttx/CMakeLists.txt +++ b/platforms/nuttx/CMakeLists.txt @@ -73,6 +73,10 @@ file(RELATIVE_PATH PX4_BINARY_DIR_REL ${CMAKE_CURRENT_BINARY_DIR} ${PX4_BINARY_D # because even relative linker script paths are different for linux, mac and windows CYGPATH(PX4_BINARY_DIR PX4_BINARY_DIR_CYG) +if(POLICY CMP0079) + cmake_policy(SET CMP0079 NEW) +endif() + target_link_libraries(nuttx_arch INTERFACE drivers_board