Hi Attila, I can take a look at this if you want. I helped Bill track it down.<br><br><div class="gmail_quote">On Tue, Apr 6, 2010 at 3:36 PM, Attila Nagy <span dir="ltr"><<a href="mailto:nagy.attila@yahoo.com">nagy.attila@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi Bill,<br>
<br>
thanks for looking into this! I'll give your suggestions a try in the following days.<br>
Hereby I cc Steve, so he's aware of the outcome of this issue too.<br>
<br>
<br>
Thanks again,<br>
<div class="im">Attila<br>
<br>
--- On Tue, 4/6/10, Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>> wrote:<br>
<br>
> From: Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>><br>
> Subject: Re: [CMake] CMake built with Apache stdcxx has problems?<br>
> To: "Attila Nagy" <<a href="mailto:nagy.attila@yahoo.com">nagy.attila@yahoo.com</a>><br>
> Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
</div>> Date: Tuesday, April 6, 2010, 8:30 PM<br>
<div><div></div><div class="h5">> Attila Nagy wrote:<br>
> > Here is the file:<br>
> ><br>
> <a href="http://www.orl.szote.u-szeged.hu/~attila/Slicer3Config-stdcxx.cmake" target="_blank">www.orl.szote.u-szeged.hu/~attila/Slicer3Config-stdcxx.cmake</a><br>
> ><br>
> > Here is another version of that same file, from the<br>
> same sources, when CMake is compiled with STLport4, for<br>
> reference (this is the file from my current Slicer3-build<br>
> dir):<br>
> ><br>
> <a href="http://www.orl.szote.u-szeged.hu/~attila/Slicer3Config-stlport.cmake" target="_blank">www.orl.szote.u-szeged.hu/~attila/Slicer3Config-stlport.cmake</a><br>
> ><br>
><br>
> OK, I think we found the problem...<br>
><br>
><br>
> <a href="http://viewvc.slicer.org/viewcvs.cgi/trunk/Libs/CMakeLists.txt?rev=12514&view=markup" target="_blank">http://viewvc.slicer.org/viewcvs.cgi/trunk/Libs/CMakeLists.txt?rev=12514&view=markup</a><br>
><br>
> Macro in CMake\Slicer3PersistenceMacros.cmake<br>
><br>
> <a href="http://viewvc.slicer.org/viewcvs.cgi/trunk/CMake/Slicer3PersistenceMacros.cmake?rev=6774&view=log" target="_blank">http://viewvc.slicer.org/viewcvs.cgi/trunk/CMake/Slicer3PersistenceMacros.cmake?rev=6774&view=log</a><br>
><br>
> Seems that it is from a work around for CMake older than<br>
> 2.6:<br>
><br>
> #-----------------------------------------------------------------------------<br>
> # Temporary hack to set/get persistent values accross<br>
> subdirs until 2.6 comes<br>
> # Neither set_source_file_properties nor set(... INTERNAL<br>
> FORCE) would work<br>
><br>
> #-----------------------------------------------------------------------------<br>
> macro(slicer3_set_persistent_property property_name)<br>
> set(_file<br>
> "${CMAKE_BINARY_DIR}/persistent/${property_name}")<br>
> file(WRITE "${_file}" "${ARGN}")<br>
> #set(__${property_name} ${value} CACHE INTERNAL ""<br>
> FORCE)<br>
> endmacro(slicer3_set_persistent_property property_name<br>
> value)<br>
><br>
> #-----------------------------------------------------------------------------<br>
> macro(slicer3_get_persistent_property property_name<br>
> var_name)<br>
> set(_file<br>
> "${CMAKE_BINARY_DIR}/persistent/${property_name}")<br>
> if(EXISTS "${_file}")<br>
> file(READ "${_file}" ${var_name})<br>
> else(EXISTS "${_file}")<br>
> set(${var_name})<br>
> endif(EXISTS "${_file}")<br>
> #set(${var_name} ${__${property_name}})<br>
> endmacro(slicer3_get_persistent_property property_name<br>
> var_name)<br>
><br>
><br>
> You could change that macro to not use file<br>
> WRITE. IF you want to track this down in<br>
> CMake, you could try some small examples with a CMake built<br>
> with both versions of stdc++. You could use<br>
> file(WRITE and file(READ to write/read some lists from a<br>
> file.<br>
><br>
> But, sounds like it is time to remove the temporary hack in<br>
> Slicer...<br>
><br>
><br>
> -Bill<br>
><br>
<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>