diff --git a/lib/rake/builder/qt_builder.rb b/lib/rake/builder/qt_builder.rb
index <HASH>..<HASH> 100644
--- a/lib/rake/builder/qt_builder.rb
+++ b/lib/rake/builder/qt_builder.rb
@@ -33,9 +33,10 @@ module Rake
     end
 
     def configure
-      super
+      raise 'programming_language must be C++' if @programming_language.downcase != 'c++'
+      raise 'qt_version must be set'           if ! @qt_version
 
-      raise "qt_version must be set" if ! @qt_version
+      super
 
       @resource_files      = Rake::Path.expand_all_with_root( @resource_files, @rakefile_path )
       @compilation_options += [ '-pipe', '-g', '-gdwarf-2', '-Wall', '-W' ]
Ensure that programming language is C++