diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/urdfdom/0001_use_math_defines.patch | |
Diffstat (limited to 'vcpkg/ports/urdfdom/0001_use_math_defines.patch')
| -rw-r--r-- | vcpkg/ports/urdfdom/0001_use_math_defines.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/urdfdom/0001_use_math_defines.patch b/vcpkg/ports/urdfdom/0001_use_math_defines.patch new file mode 100644 index 0000000..5197b56 --- /dev/null +++ b/vcpkg/ports/urdfdom/0001_use_math_defines.patch @@ -0,0 +1,15 @@ +diff --git a/urdf_parser/CMakeLists.txt b/urdf_parser/CMakeLists.txt +index ac7c079..67f175d 100644 +--- a/urdf_parser/CMakeLists.txt ++++ b/urdf_parser/CMakeLists.txt +@@ -23,6 +23,10 @@ macro(add_urdfdom_library) + SOVERSION ${URDF_MAJOR_MINOR_VERSION}) + endmacro() + ++if(MSVC) ++ add_definitions(-D_USE_MATH_DEFINES) ++endif() ++ + if(TARGET console_bridge::console_bridge) + set(console_bridge_link_libs "console_bridge::console_bridge") + else() |