Skip to content

Commit

Permalink
Avoid check macro collision. (#1165)
Browse files Browse the repository at this point in the history
* Avoid check macro collision.

* Add comment as suggested.
  • Loading branch information
mikepurvis authored and wjwwood committed Oct 20, 2017
1 parent 3265ed0 commit 150c894
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ endif(NOT DEFINED OGRE_OV_LIBRARIES_ABS)
if(APPLE)
FIND_LIBRARY(Cocoa_LIBRARIES Cocoa)
set(rviz_ADDITIONAL_LIBRARIES ${Cocoa_LIBRARIES})

# This definition prevents an Apple header from defining a macro called "check", which if
# present, collides with another function in the rviz code. See:
# https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/AssertMacros.h
add_definitions(-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0)
endif()

find_package(OpenGL REQUIRED)
Expand Down

0 comments on commit 150c894

Please sign in to comment.