diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8090050..8e4bd38 100644
--- gmic-qt/CMakeLists.txt
+++ gmic-qt/CMakeLists.txt
@@ -572,7 +572,7 @@
   # by the gmic.cpp plugin. However, this is only possible
   # if the library is static OR if it's dynamic and built by
   # a compiler that supports .so-style exports.
-  if (TARGET libgmicstatic OR MSVC OR NOT ENABLE_SYSTEM_GMIC)
+  if (TARGET libgmicstatic OR MSVC)
     set(gmic_qt_LIBRARIES
       ${gmic_qt_LIBRARIES}
       libgmicstatic
