mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 17:53:33 +08:00
refactor: remove '#define MODULE_NAME' from tests
And use target_compile_definitions() instead
This commit is contained in:
@@ -116,6 +116,8 @@ function(px4_add_functional_gtest)
|
||||
# also links to fuzztest_gtest_main
|
||||
test_stubs) # put test_stubs last
|
||||
|
||||
target_compile_definitions(${TESTNAME} PRIVATE MODULE_NAME="${TESTNAME}")
|
||||
|
||||
if(COMPILE_FLAGS)
|
||||
target_compile_options(${TESTNAME} PRIVATE ${COMPILE_FLAGS})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user