Skip to content

Commit 0cb2fae

Browse files
qeyupBorjaOuterelo
authored andcommitted
Windows build issue fix (#4)
1 parent 9623e09 commit 0cb2fae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎C/RAD0_altitude_sensor/CMakeLists.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ endif()
1616
add_executable(${PROJECT_NAME} main.c)
1717
ament_target_dependencies(${PROJECT_NAME} rclc std_msgs)
1818

19-
target_link_libraries(${PROJECT_NAME} m)
19+
if(NOT WIN32)
20+
target_link_libraries(${PROJECT_NAME} m)
21+
endif()
2022

2123
install(TARGETS
2224
${PROJECT_NAME}

0 commit comments

Comments
 (0)