From 22ee90b7d7744012e54abacb1679f4c06b899ad6 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Wed, 1 Nov 2023 19:29:27 +0100 Subject: [PATCH] add include path for crc32.h on "posix" and "ros2" platform --- src/lib/parameters/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/parameters/CMakeLists.txt b/src/lib/parameters/CMakeLists.txt index f4fbeb0eb4..a68a6e38ad 100644 --- a/src/lib/parameters/CMakeLists.txt +++ b/src/lib/parameters/CMakeLists.txt @@ -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)