add include path for crc32.h on "posix" and "ros2" platform

This commit is contained in:
Christian Rauch 2023-11-01 19:29:27 +01:00 committed by Daniel Agar
parent 7394a20a58
commit 22ee90b7d7
1 changed files with 4 additions and 0 deletions

View File

@ -201,4 +201,8 @@ if(${PX4_PLATFORM} STREQUAL "nuttx")
target_link_libraries(parameters PRIVATE flashparams)
endif()
if(${PX4_PLATFORM} STREQUAL "posix" OR ${PX4_PLATFORM} STREQUAL "ros2")
target_include_directories(parameters PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/../../../platforms/posix/include/")
endif()
px4_add_functional_gtest(SRC ParameterTest.cpp LINKLIBS parameters)