mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
cmake: remove ${PX4_INCLUDE_DIR}visibility.h
This is already added in px4_base.cmake and PX4_INCLUDE_DIR is not set either.
This commit is contained in:
@@ -182,7 +182,6 @@ if(UNIX AND APPLE)
|
|||||||
-D__PX4_DARWIN
|
-D__PX4_DARWIN
|
||||||
-D__DF_DARWIN
|
-D__DF_DARWIN
|
||||||
-Dnoreturn_function=__attribute__\(\(noreturn\)\)
|
-Dnoreturn_function=__attribute__\(\(noreturn\)\)
|
||||||
-include ${PX4_INCLUDE_DIR}visibility.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(added_cxx_flags)
|
set(added_cxx_flags)
|
||||||
@@ -209,7 +208,6 @@ else()
|
|||||||
-D__PX4_LINUX
|
-D__PX4_LINUX
|
||||||
-D__DF_LINUX
|
-D__DF_LINUX
|
||||||
-Dnoreturn_function=__attribute__\(\(noreturn\)\)
|
-Dnoreturn_function=__attribute__\(\(noreturn\)\)
|
||||||
-include ${PX4_INCLUDE_DIR}visibility.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Use -pthread For linux/g++.
|
# Use -pthread For linux/g++.
|
||||||
|
|||||||
@@ -178,7 +178,6 @@ function(px4_os_add_flags)
|
|||||||
-D__DF_QURT # For DriverFramework
|
-D__DF_QURT # For DriverFramework
|
||||||
-D__PX4_POSIX
|
-D__PX4_POSIX
|
||||||
-D__QAIC_SKEL_EXPORT=__EXPORT
|
-D__QAIC_SKEL_EXPORT=__EXPORT
|
||||||
-include ${PX4_INCLUDE_DIR}visibility.h
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add the toolchain specific flags
|
# Add the toolchain specific flags
|
||||||
|
|||||||
Reference in New Issue
Block a user