(cherry picked from commit 91646cedfc368e29ab7e8f70cbf77aa1e354b5c4) Co-authored-by: guillaume-pais-siemens <79512275+guillaume-pais-siemens@users.noreply.github.com>
This commit is contained in:
parent
c843299592
commit
1a9d4f3b92
1 changed files with 11 additions and 0 deletions
|
@ -71,6 +71,17 @@ target_include_directories(rmw_cyclonedds_cpp PUBLIC
|
||||||
target_link_libraries(rmw_cyclonedds_cpp
|
target_link_libraries(rmw_cyclonedds_cpp
|
||||||
CycloneDDS::ddsc
|
CycloneDDS::ddsc
|
||||||
)
|
)
|
||||||
|
if(CMAKE_GENERATOR_PLATFORM)
|
||||||
|
set(TARGET_ARCH "${CMAKE_GENERATOR_PLATFORM}")
|
||||||
|
else()
|
||||||
|
set(TARGET_ARCH "${CMAKE_SYSTEM_PROCESSOR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCXX AND TARGET_ARCH MATCHES "^(riscv|RISCV)64$")
|
||||||
|
# using GCC, libatomic is not automatically linked for RISC-V
|
||||||
|
target_link_libraries(rmw_cyclonedds_cpp -latomic)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
ament_target_dependencies(rmw_cyclonedds_cpp
|
ament_target_dependencies(rmw_cyclonedds_cpp
|
||||||
"rcutils"
|
"rcutils"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue