Skip to content

Commit

Permalink
Add /bigobj to MSVC compiles. (#1571)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Feb 23, 2024
1 parent baaf06a commit 04afde6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rosbag2_transport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ endif()
# Windows supplies macros for min and max by default. We should only use min and max from stl
if(WIN32)
add_definitions(-DNOMINMAX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
endif()

find_package(ament_cmake REQUIRED)
Expand Down

0 comments on commit 04afde6

Please sign in to comment.