<div dir="auto">Hi Sanu,<div dir="auto">We test pgi pretty heavily so it should work okay.  Can you show the output failure you get when trying to configure?</div><div dir="auto"><br></div><div dir="auto">- Chuck</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 23, 2019, 1:21 AM 李 三乎 <<a href="mailto:lisanhu2014@hotmail.com">lisanhu2014@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<img class="m_-1242098003340532863cloudmagic-smart-beacon" src="https://tr.cloudmagic.com/h/v6/emailtag/tag/2.0/1563859234/288db9ab62ba963e3c33af4ebd3cc1bc/11/be623dafddc53423015ac812773b3c39/19c8011ecf80ea93f8a632d2fbd6f857/b453bc4819eacec2a20aaea0348ea875/newton.gif" style="border:0;width:10px;height:10px" width="10" height="10" align="right">
<div dir="auto">Dear CMake Community,
<div><br>
</div>
<div>I’m here to report an error occurred when using PGI compiler. The readme for CMake asks me to ask question first in the mailing list, and here I am. </div>
<div><br>
</div>
<div>I’ve installed zlib1g-dev to my system, but CMake cannot find the zlib library for me. Then I tested it on a singularity ubuntu image ( similar to docker image ), with the following settings:</div>
<div><br>
</div>
<div>Ubuntu 19.04 amd64</div>
<div>PGI compiler community edition 19.04</div>
<div>CMake 3.14</div>
<div><br>
</div>
<div>CMakeLists.txt</div>
<div>```</div>
<div>project( none C CXX)</div>
<div>find_package( ZLIB REQUIRED )</div>
<div>```</div>
<div><br>
</div>
<div>If I use gcc or clang, it would create the makefile successfully, but when I use PGI compiler (pgcc, pgc++), it would report not able to find zlib. I think there might be some problem with the FindZLIB.cmake file but I couldn’t find out where is the problem. </div>
<div><br>
</div>
<div>Also, when using CLion configured with PGI compiler, there would be a lot of error messages ( although we can still build the project ), the error messages are really annoying. I feel it’s because the support for PGI compiler is still not perfect yet.
 Really wish CMake would like to add more support for this compiler.</div>
<div><br>
</div>
<div>Thank you very much for reading. Have a great day!</div>
<span><br>
<div id="m_-1242098003340532863cm_footer" class="m_-1242098003340532863cm_footer">
<div id="m_-1242098003340532863cm_signature">—
<div>Sanhu Li</div>
</div>
<br>
<div id="m_-1242098003340532863cm_sent_from">via <a href="https://cloudmagic.com/k/d/mailapp?ct=dx&cv=10.0.18&pv=10.14.5&source=email_footer_2" target="_blank" rel="noreferrer">
Newton Mail</a></div>
</div>
</span></div>
</div>

-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div>