<div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px">I have replaced</span></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">option (HDF5_ALLOW_EXTERNAL_SUPPORT "Allow External Library Building (NO SVN TGZ)" "NO")<br>
</span><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">with</span></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br>
</span></div><div><span style="font-size:13px;font-family:arial,sans-serif">set (HDF5_ALLOW_EXTERNAL_SUPPORT "NO" CACHE STRING "Allow External Library Building (NO SVN TGZ)")</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">SET_PROPERTY(CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO SVN TGZ)</span></div>
<div><br></div><div>however cmake-gui still mistakenly recognizes <span style="font-family:arial,sans-serif;font-size:13px">HDF5_ALLOW_EXTERNAL_SUPPORT</span><span style="font-family:arial,sans-serif;font-size:13px"> as boolean.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">If I specify -D</span>HDF5_ALLOW_EXTERNAL_SUPPORT:STRING=SVN from command-line, it is processed properly, but with a warning in CMakeCache.txt:</div>
<div><br></div><div>//No help, variable specified on the command line.</div><div>HDF5_ALLOW_EXTERNAL_SUPPORT:STRING="SVN"</div><div><br></div><div>I expect it to be</div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div>// <span style="font-family:arial,sans-serif;font-size:13px">Allow External Library Building (NO SVN TGZ)</span></div><div><div>HDF5_ALLOW_EXTERNAL_SUPPORT:STRING="SVN"</div></div><div><br></div>
<div>Best wishes,</div><div>Andrey Paramonov</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-30 11:11 GMT+04:00 Nils Gladitz <span dir="ltr"><<a href="mailto:nilsgladitz@gmail.com" target="_blank">nilsgladitz@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 05/30/2014 08:27 AM, Андрей Парамонов wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is it a problem in cmake or in HDF5 sources? If the latter, how could it<br>
be fixed?<br>
I'm a first-time cmake user, so please forgive my ignorance ;-)<br>
<br>
Best wishes,<br>
Andrey Paramonov<br>
</blockquote>
<br></div>
I haven't tried configuring the project but looking at the sources ...<br>
<br>
CMakeFilters.cmake (included by CMakeLists.txt) defines it as a boolean option:<br>
<br>
option (HDF5_ALLOW_EXTERNAL_SUPPORT "Allow External Library Building (NO SVN TGZ)" "NO")<br>
<br>
option() is always boolean. To create cache variables with a different type use set(); this seems to be done by your project's config/cmake/cacheinit.cmake (which I assume isn't directly included):<br>
<br>
set (HDF5_ALLOW_EXTERNAL_SUPPORT "NO" CACHE STRING "Allow External Library Building (NO SVN TGZ)" FORCE)<br>
SET_PROPERTY(CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO SVN TGZ)<br>
<br>
If you were to replace the existing option() with that snippet remove the "FORCE" keyword first.<span class="HOEnZb"><font color="#888888"><br>
<br>
Nils<br>
</font></span></blockquote></div><br></div>