File mathgl-cmake-3.2.patch of Package mathgl

Index: mathgl-2.3.2/udav/CMakeLists.txt
===================================================================
--- mathgl-2.3.2.orig/udav/CMakeLists.txt
+++ mathgl-2.3.2/udav/CMakeLists.txt
@@ -38,10 +38,10 @@ endif(enable-qt5)
 add_executable(udav ${udav_src} ${udav_moc_src} ${udav_rc_src})
 #set_target_properties(udav PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
 if(enable-qt5)
-	target_link_libraries(udav mgl-qt5)
+	target_link_libraries(udav mgl-qt5 X11)
 	qt5_use_modules(udav Core Widgets Gui PrintSupport)
 else(enable-qt5)
-	target_link_libraries(udav mgl-qt4)
+	target_link_libraries(udav mgl-qt4 X11)
 	target_link_libraries(udav ${QT_LIBRARIES})
 endif(enable-qt5)
 
openSUSE Build Service is sponsored by