Skip to content

Commit

Permalink
WIN32 CMake changes
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Nov 24, 2024
1 parent aa7f887 commit 5efda34
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
-Werror=return-type -Werror=shadow -Werror=format)
endif()

if(WIN32)
add_compile_definitions(
# For math constants
_USE_MATH_DEFINES
# Minimize Windows namespace collision
NOMINMAX
WIN32_LEAN_AND_MEAN
)
endif()

set(THIS_PACKAGE_INCLUDE_DEPENDS
rclcpp
rclcpp_action
Expand Down

0 comments on commit 5efda34

Please sign in to comment.