vcpkg/ports/urdfdom/0001_use_math_defines.patch
Thomas1664 3887833719
[urdfdom] Update to 3.1.0 (#25591)
* [urdfdom] Update to 3.1.0

* Enable static builds

* version

* Remove from ci baseline

* Update headers as well

* use version

* version

* Update dartsim

* version

* only dynamic

* version

* Fix version

* version

* Update dartsim

* version

* [dartsim] update to fix Windows build failure

* Add fmt dependence

* urdfdom supports

* Update ref

* license

* version

* dartsim isn't supported on 32 bits anymore

* version

* [dartsim] update to 6.12.2

* version

* maybe unused

* version

* Fix patch

* version

* cr urdfdom-headers

* dartsim

* urdfdom

* version

* license

* version
2022-08-05 23:09:54 -07:00

16 lines
447 B
Diff

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()