Last active
May 27, 2024 12:31
-
-
Save souljaboy764/64a4838c151896b6cbc6823ba3008a56 to your computer and use it in GitHub Desktop.
franka_ros2_CMakeLists_libfmt.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/franka_hardware/CMakeLists.txt b/franka_hardware/CMakeLists.txt | |
index aeecab6..83220ee 100644 | |
--- a/franka_hardware/CMakeLists.txt | |
+++ b/franka_hardware/CMakeLists.txt | |
@@ -7,7 +7,7 @@ if(NOT CMAKE_CXX_STANDARD) | |
endif() | |
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | |
- add_compile_options(-Wall -Wextra -Wpedantic) | |
+ add_compile_options(-Wall -Wextra -Wpedantic -L$ENV{HOME}/.local/lib/libfmt.a -DFMT_HEADER_ONLY) | |
endif() | |
option(CHECK_TIDY "Adds clang-tidy tests" OFF) | |
@@ -33,6 +33,8 @@ target_include_directories( | |
franka_hardware | |
PRIVATE | |
include | |
+ $ENV{HOME}/.local/include | |
+ $ENV{HOME}/.local/include/fmt | |
) | |
ament_target_dependencies( | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment