Skip to content

Commit fefd399

Browse files
authored
Merge pull request #46 from prbelarmino/main
Update CMakeLists file to run on a raspbian buster system
2 parents 4016873 + 91d05ef commit fefd399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mqtt_client/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set(ROS_VERSION $ENV{ROS_VERSION})
66

77
## Compile as C++17
88
add_compile_options(-std=c++17)
9+
link_libraries("$<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.0>>:-lstdc++fs>")
910
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
1011
add_compile_options(-Wall -Wextra -Wpedantic)
1112
endif()

0 commit comments

Comments
 (0)