Skip to content

Commit

Permalink
Rollback of change to Linux linking OpenGL, closes #198 again
Browse files Browse the repository at this point in the history
  • Loading branch information
TwinFan committed Oct 18, 2020
1 parent 9a4f16a commit 584a916
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,10 @@ target_link_libraries( LiveTraffic ${CURL_LIBRARIES} )

# Link OpenGL and OpenAL related libraries.
set (OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED COMPONENTS OpenGL) # apt install freeglut3-dev
find_package(OpenGL REQUIRED) # apt install freeglut3-dev
if ( OpenGL_FOUND )
add_dependencies( LiveTraffic OpenGL::OpenGL )
include_directories( ${OpenGL_INCLUDE_DIRS} )
target_link_libraries( LiveTraffic OpenGL::OpenGL )
target_link_libraries( LiveTraffic ${OpenGL_LIBRARIES} )
endif( OpenGL_FOUND )

# Link X-Plane plugin system libraries. They are only provided for OS X and Windows.
Expand Down

0 comments on commit 584a916

Please sign in to comment.