diff --git a/cmake/QtPostProcess.cmake b/cmake/QtPostProcess.cmake index 880e73e869e..f0286b25f64 100644 --- a/cmake/QtPostProcess.cmake +++ b/cmake/QtPostProcess.cmake @@ -269,7 +269,7 @@ endfunction() function(qt_internal_create_plugins_files) # The plugins cmake configuration is only needed for static builds. Dynamic builds don't need # the application to link against plugins at build time. - if(NOT QT_BUILD_SHARED_LIBS) + if(QT_BUILD_SHARED_LIBS) return() endif() qt_internal_get_qt_repo_known_modules(repo_known_modules)