Skip to content

Commit

Permalink
add include path for crc32.h on "posix" and "ros2" platform
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch authored and dagar committed Nov 3, 2023
1 parent 7394a20 commit 22ee90b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/parameters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 22ee90b

Please sign in to comment.