--- CMakeLists.txt.orig	2023-06-22 09:41:32 UTC
+++ CMakeLists.txt
@@ -309,6 +309,7 @@ if (UNIX)
         set(gmic_qt_LIBRARIES
             ${gmic_qt_LIBRARIES}
             ${X11_LIBRARIES} # XXX: Search for X11: Wayland is coming!
+            Threads::Threads
         )
     endif()
 endif()
@@ -622,9 +623,9 @@ message("Producing translation .qm files")
 endif(ENABLE_DYNAMIC_LINKING)
 
 message("Producing translation .qm files")
-execute_process(COMMAND make WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/translations OUTPUT_QUIET)
+execute_process(COMMAND gmake WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/translations OUTPUT_QUIET)
 message("Producing filter translation .qm files")
-execute_process(COMMAND make WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/translations/filters OUTPUT_QUIET)
+execute_process(COMMAND gmake WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/translations/filters OUTPUT_QUIET)
 
 set(gmic_qt_QRC
     gmic_qt.qrc