]> git.mxchange.org Git - flightgear.git/blobdiff - utils/fgviewer/CMakeLists.txt
Fix compile with CMake 3.2.1, by Kevin Seroux
[flightgear.git] / utils / fgviewer / CMakeLists.txt
index 165be74846729ce0cf21169dd06d4090454e9dc1..bfc52ad50aa68e3887ab89be28458a6276659f39 100644 (file)
@@ -42,6 +42,10 @@ else()
 endif()
 
 add_executable(fgviewer ${FGVIEWER_SOURCES} ${FGVIEWER_RTI_SOURCES})
+if(X11_FOUND)
+    target_link_libraries(fgviewer ${X11_LIBRARIES})
+endif()
+
 target_link_libraries(fgviewer
        ${SIMGEAR_LIBRARIES}
        ${OPENSCENEGRAPH_LIBRARIES}