From e87aa6f6c18dca2561270275453305a136bcd4a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 29 Mar 2017 18:41:34 +0200 Subject: [PATCH] cmake: remove ${PX4_INCLUDE_DIR}visibility.h This is already added in px4_base.cmake and PX4_INCLUDE_DIR is not set either. --- cmake/posix/px4_impl_posix.cmake | 2 -- cmake/qurt/px4_impl_qurt.cmake | 1 - 2 files changed, 3 deletions(-) diff --git a/cmake/posix/px4_impl_posix.cmake b/cmake/posix/px4_impl_posix.cmake index 5e9de2b8d6..205ec34534 100644 --- a/cmake/posix/px4_impl_posix.cmake +++ b/cmake/posix/px4_impl_posix.cmake @@ -182,7 +182,6 @@ if(UNIX AND APPLE) -D__PX4_DARWIN -D__DF_DARWIN -Dnoreturn_function=__attribute__\(\(noreturn\)\) - -include ${PX4_INCLUDE_DIR}visibility.h ) set(added_cxx_flags) @@ -209,7 +208,6 @@ else() -D__PX4_LINUX -D__DF_LINUX -Dnoreturn_function=__attribute__\(\(noreturn\)\) - -include ${PX4_INCLUDE_DIR}visibility.h ) # Use -pthread For linux/g++. diff --git a/cmake/qurt/px4_impl_qurt.cmake b/cmake/qurt/px4_impl_qurt.cmake index c783e38c18..c7cff74d5e 100644 --- a/cmake/qurt/px4_impl_qurt.cmake +++ b/cmake/qurt/px4_impl_qurt.cmake @@ -178,7 +178,6 @@ function(px4_os_add_flags) -D__DF_QURT # For DriverFramework -D__PX4_POSIX -D__QAIC_SKEL_EXPORT=__EXPORT - -include ${PX4_INCLUDE_DIR}visibility.h ) # Add the toolchain specific flags