cmake osx deployment target is '10.11' but CMAKE_OSX_SYSROOT error
<p>I'm getting this cmake error while installing a python file related to openAI gym. The error log which is bugging me is the below lines..</p>

<pre><code>CMake Error at     /usr/local/Cellar/cmake/3.5.2/share/cmake/Modules/Platform/Darwin.cmake:76    (message):
 CMAKE_OSX_DEPLOYMENT_TARGET is '10.11' but CMAKE_OSX_SYSROOT:

 ""

is not set to a MacOSX SDK with a recognized version.  Either set
CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
empty.
</code></pre>

<p>Can anyone please guide me how to overcome this error ? I have also attached the full error log if it helps. 
<a href="https://www.dropbox.com/s/qxyxaleu38xgwi0/errorLogOpenAI.txt?dl=0" rel="nofollow">https://www.dropbox.com/s/qxyxaleu38xgwi0/errorLogOpenAI.txt?dl=0</a></p>

<p>I have tried set CMAKE_OSX_DEPLOYMENT_TARGET empty command and re-executed installation, but it still threw same error.</p>

<p>Complete error log : <a href="https://www.dropbox.com/s/f0dftar6ovbrreu/pachi_2_pdf.pdf?dl=0" rel="nofollow">https://www.dropbox.com/s/f0dftar6ovbrreu/pachi_2_pdf.pdf?dl=0</a></p>

<p>Expanding on comment. As error text suggests:</p>

<pre><code>is not set to a MacOSX SDK with a recognized version.  Either set
CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
empty.
</code></pre>

<p>You can unset CMAKE_OSX_DEPLOYMENT_TARGET to let cmake chose  defaults. You can add following in your cmake file:</p>

<pre><code>unset(CMAKE_OSX_DEPLOYMENT_TARGET)
</code></pre>

python osx cmake