mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Addressed scope question.
This commit is contained in:
@@ -77,6 +77,10 @@
|
|||||||
# makes it clear to the user when variables are being set or targets
|
# makes it clear to the user when variables are being set or targets
|
||||||
# are being created.
|
# are being created.
|
||||||
#
|
#
|
||||||
|
# * Setting a global variable in a CMakeLists.txt file is ok, because
|
||||||
|
# each CMakeLists.txt file has scope in the current directory and all
|
||||||
|
# subdirecties, so it is not truly global.
|
||||||
|
#
|
||||||
# * All toolchain files should be included in the cmake
|
# * All toolchain files should be included in the cmake
|
||||||
# directory and named Toolchain-"name".cmake.
|
# directory and named Toolchain-"name".cmake.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -9,9 +9,8 @@ px4_qurt_generate_builtin_commands(
|
|||||||
OUT ${CMAKE_BINARY_DIR}/apps.h
|
OUT ${CMAKE_BINARY_DIR}/apps.h
|
||||||
MODULE_LIST ${module_libraries})
|
MODULE_LIST ${module_libraries})
|
||||||
|
|
||||||
# FIXME @jgoppert - how to work around issues like this?
|
|
||||||
# Without changing global variables?
|
|
||||||
# Clear -rdynamic flag which fails for hexagon
|
# Clear -rdynamic flag which fails for hexagon
|
||||||
|
# this change is scoped in this directory and below
|
||||||
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||||
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
|
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user