We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54ad72b commit 633d83eCopy full SHA for 633d83e
angles/CMakeLists.txt
@@ -16,6 +16,9 @@ find_package(ament_cmake REQUIRED)
16
add_library(angles INTERFACE)
17
target_include_directories(angles INTERFACE
18
"$<INSTALL_INTERFACE:include/angles>")
19
+if(WIN32)
20
+ target_compile_definitions(angles INTERFACE _USE_MATH_DEFINES)
21
+endif()
22
23
if(BUILD_TESTING)
24
find_package(ament_cmake_gtest REQUIRED)
angles/include/angles/angles.h
@@ -35,7 +35,10 @@
35
#ifndef GEOMETRY_ANGLES_UTILS_H
36
#define GEOMETRY_ANGLES_UTILS_H
37
38
+#ifndef _USE_MATH_DEFINES
39
#define _USE_MATH_DEFINES
40
+#endif
41
+
42
#include <algorithm>
43
#include <cmath>
44
0 commit comments