Skip to content

Commit

Permalink
Prefer vendor-specific OpenGL library
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfFan authored and rhaschke committed Oct 4, 2019
1 parent 566adf4 commit fa783d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ if(APPLE)
add_definitions(-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0)
endif()

# Prefer newer vender-specific OpenGL library
if (POLICY CMP0072)
cmake_policy(SET CMP0072 NEW)
endif()
find_package(OpenGL REQUIRED)

set(CMAKE_AUTOMOC ON)
Expand Down

0 comments on commit fa783d2

Please sign in to comment.