diff --git a/plugins/qmlprofiler/qmlprofiler.pro b/plugins/qmlprofiler/qmlprofiler.pro
index e892a542b71eb35893a3e56cee55661ab4b6a0a0..bf841816ae30e880dccb0f6e5f4389c13721d50b 100644
--- a/plugins/qmlprofiler/qmlprofiler.pro
+++ b/plugins/qmlprofiler/qmlprofiler.pro
@@ -5,6 +5,7 @@ PROVIDER = Digia
 include(../../qtcreatorplugin.pri)
 
 DEFINES += QMLPROFILEREXTENSION_LIBRARY
+CONFIG(licensechecker): DEFINES += LICENSECHECKER
 
 # QmlProfilerExtension files
 
diff --git a/plugins/qmlprofiler/qmlprofiler_dependencies.pri b/plugins/qmlprofiler/qmlprofiler_dependencies.pri
index 7ffa4d0623ff8f3017112ae674373a11ebf0636c..69ea4971bf47b5abb3aad609a463ea1e6a7b3063 100644
--- a/plugins/qmlprofiler/qmlprofiler_dependencies.pri
+++ b/plugins/qmlprofiler/qmlprofiler_dependencies.pri
@@ -2,4 +2,4 @@ QTC_PLUGIN_NAME = QmlProfilerExtension
 QTC_PLUGIN_DEPENDS += \
     qmlprofiler
 
-CONFIG(licensechecker): QT_PLUGIN_DEPENDS += licensechecker
+CONFIG(licensechecker): QTC_PLUGIN_DEPENDS += licensechecker