--- utils/CMakeLists.txt.orig	2021-12-08 05:59:57 UTC
+++ utils/CMakeLists.txt
@@ -7,7 +7,7 @@ set(link_type)
 endif(MSVC)
 
 add_executable(mgltask mgltask.cpp)
-target_link_libraries(mgltask mgl${link_type} ${getopt_lib-static})
+target_link_libraries(mgltask mgl${link_type} ${getopt_lib})
 install(
 	TARGETS mgltask
 	EXPORT MathGLTargets
@@ -15,7 +15,7 @@ install(
 )
 
 add_executable(mglconv mglconv.cpp)
-target_link_libraries(mglconv mgl${link_type} ${getopt_lib-static})
+target_link_libraries(mglconv mgl${link_type} ${getopt_lib})
 install(
 	TARGETS mglconv
 	EXPORT MathGLTargets
@@ -23,7 +23,7 @@ install(
 )
 
 add_executable(mgl.cgi mglcgi.cpp)
-target_link_libraries(mgl.cgi mgl-static)
+target_link_libraries(mgl.cgi mgl)
 install(
 	TARGETS mgl.cgi
 	EXPORT MathGLTargets
@@ -36,7 +36,7 @@ mgl_po_src(mglconv.cpp mglview.cpp mglcgi.cpp mgltask.
 if(MGL_HAVE_FLTK)
 	add_definitions(-DUSE_FLTK)
 	add_executable(mglview mglview.cpp)
-	target_link_libraries(mglview mgl-fltk ${getopt_lib-static} ${FLTK_LIBRARIES})
+	target_link_libraries(mglview mgl-fltk ${getopt_lib} ${FLTK_LIBRARIES})
 	install(
 		TARGETS mglview
 		EXPORT MathGLTargets
@@ -48,10 +48,10 @@ else(MGL_HAVE_FLTK)
 		add_executable(mglview mglview.cpp)
 		if(enable-qt5)
 			include(../scripts/qt5.cmake)
-			target_link_libraries(mglview mgl-qt5${link_type} ${getopt_lib-static} ${MGL_QT5_LIBS})
+			target_link_libraries(mglview mgl-qt5${link_type} ${getopt_lib} ${MGL_QT5_LIBS})
 		else(enable-qt5)
 			include(../scripts/qt4.cmake)
-			target_link_libraries(mglview mgl-qt4${link_type} ${getopt_lib-static} ${MGL_QT4_LIBS})
+			target_link_libraries(mglview mgl-qt4${link_type} ${getopt_lib} ${MGL_QT4_LIBS})
 		endif(enable-qt5)
 
 		install(
