title: Qt5 [make -snap] doesn't compile properly: The process "/usr/bin/snap" exited with code 1
body: <p>I copied/paste a <code>Qt5</code> project folder from a computer to another computer. They are both <code>Ubuntu 18.04</code>.</p>
  
  <p>Same version of <code>Qt5</code> and same libraries/dependencies. On the new computer, I have <code>CMake 3.10.2</code>, but I don't remember the verion of <code>CMake</code> I had on the former one. (Probably <code>CMake 3.8</code>).</p>
  
  <p>As soon as I open <code>Qt5</code> and open the folder containing the <code>CMakeLists.txt</code> file, and click on it, I get the following result from the output:</p>
  
  <pre><code>08:02:22: Running steps for project newcam-proc...     
  08:02:22: Persisting CMake state...  
  08:02:22: Starting: "/usr/bin/snap" --build . --target all error: unknown flag `build' 
  08:02:22: The process "/usr/bin/snap" exited with code 1. 
  Error while building/deploying project myProject (kit: Desktop Qt 5.12.5 GCC 64bit) 
  The kit Desktop Qt 5.12.5 GCC 64bit has configuration issues which might be the root cause for this problem. When executing step "CMake Build" 
  08:02:22: Elapsed time: 00:00.
  </code></pre>
  
  <p>And below the <code>General Message</code> I get:</p>
  
  <pre><code>Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
  Could not read qmake configuration file /home/emanuele/Qt/5.12.5/android_armv7/mkspecs/android-clang/qmake.conf.
  Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
  Could not read qmake configuration file /home/emanuele/Qt/5.12.5/android_x86/mkspecs/android-clang/qmake.conf.
  Running /usr/bin/snap /home/emanuele/Desktop/myProject -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_CXX_COMPILER:STRING=/usr/bin/g++ -DCMAKE_C_COMPILER:STRING=/usr/bin/gcc -DCMAKE_PREFIX_PATH:STRING=/home/emanuele/Qt/5.12.5/gcc_64 -DQT_QMAKE_EXECUTABLE:STRING=/home/emanuele/Qt/5.12.5/gcc_64/bin/qmake in /tmp/QtCreator-vlHbHY/qtc-cmake-LvUefYdh.
  error: unknown command "/home/emanuele/Desktop/myProject", see 'snap help'.
  CMake process exited with exit code 1.
  </code></pre>
  
  <p>I never had to use <code>Android NDK</code> on my previous project, nor I had to install it. And I am not sure why on the new machine is showing this message.</p>
  
  <p>In addition it seems that is trying to use <code>snap</code> instead of the usual <code>make</code>. </p>
  
  <p>I am not sure about what is happening and why.</p>
  
  <p><strong>What I tried so far:</strong></p>
  
  <p>1) The only thing that came to my mind was to try to create a small example application and see if it runs, it actually runs properly and gives no error as shown below:</p>
  
  <pre><code>08:16:00: Running steps for project untitled...
  08:16:00: Configuration unchanged, skipping qmake step.
  08:16:00: Starting: "/usr/bin/make" -j8
  make: Nothing to be done for 'first'.
  08:16:00: The process "/usr/bin/make" exited normally.
  08:16:00: Elapsed time: 00:00.
  </code></pre>
  
  <p>It seems that the project that I copied/paste uses <code>snap</code> and if I create a new project, like a <code>Qt Widget application</code>, it actually uses <code>make</code>, exiting correctly in the output.</p>