title: How to disable a CMAKE option
body: <p>On <code>${CMAKE_CURRENT_SOURCE_DIR}/JUCE</code>, there is:</p>
  <pre><code>option(JUCE_BUILD_EXTRAS &quot;Add build targets for the Projucer and other tools&quot; OFF)
  
  if(JUCE_BUILD_EXTRAS)
      add_subdirectory(extras)
  endif()
  </code></pre>
  <p>link: <a href="https://github.com/juce-framework/JUCE/blob/master/CMakeLists.txt#L57" rel="nofollow noreferrer">https://github.com/juce-framework/JUCE/blob/master/CMakeLists.txt#L57</a></p>
  <p>So this is what I did:</p>
  <pre><code>set(JUCE_BUILD_EXTRAS OFF)
  add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/JUCE)
  </code></pre>
  <p>However it still tries to build extras. I'm on Android Studio.</p>
  <p>What should I do?</p>
  <p>I also tried <code>set(JUCE_BUILD_EXTRAS OFF)</code></p>
  <p>The default value is OFF and even then it tried to build.</p>
  <p>I always get these errors when trying to disable something on Android CMAKE but it always fails</p>