<div dir="ltr">Hello,<div><br></div><div>I am also interested. I found this last week:</div><div><br></div><div><a href="http://stackoverflow.com/questions/17967597/obtaining-current-gcc-exception-model">http://stackoverflow.com/questions/17967597/obtaining-current-gcc-exception-model</a><br>
</div><div><br></div><div>But there's more than the exception model, there is also POSIX threads vs Windows threads, mingw-w64-based vs mingw32-based vs nuwen vs TDM vs ...</div><div><br></div><div>I'm keeping my notes (and progress when I finally start with this issue) here:</div>
<div><br></div><div><a href="https://elpauer.assembla.com/spaces/winstng/tickets/10-support-mingw?comment=376717093#comment:376717093">https://elpauer.assembla.com/spaces/winstng/tickets/10-support-mingw?comment=376717093#comment:376717093</a><br>
</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 13, 2013 at 4:35 PM, Richard Shaw <span dir="ltr"><<a href="mailto:hobbes1069@gmail.com" target="_blank">hobbes1069@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have a project I successfully built under mingw32 and I'm now attempting to build under mingw64.<div>
<br></div><div>I am cross compiling under Fedora x86_64...</div><div><br></div><div>In order to pull in all the DLLs for CPack I devised the following:</div>
<div><br></div><div><div> # Try to grab all the runtime dlls for the windows installer. </div><div> # This will break if the dll names change!</div><div> foreach(RUNTIME</div><div> libgcc_s_sjlj-1.dll</div>
<div> libgcc_s_seh-1.dll</div><div> libstdc++-6.dll</div><div> libsndfile-1.dll</div></div><div> ....</div><div><div> message(STATUS "Checking for ${RUNTIME}")</div><div> find_library(${RUNTIME}_LIB NAMES ${RUNTIME})</div>
<div> if(${RUNTIME}_LIB-FOUND)</div><div> message(STATUS "runtime found: ${${RUNTIME}_LIB}")</div><div> list(APPEND CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS ${${RUNTIME}_LIB})</div><div> else()</div>
<div> message(STATUS "${RUNTIME} not found. Hope nothing breaks!")</div><div> endif()</div><div> endforeach()</div></div><div><br></div><div>The problem is that two different libgcc_s library variants are used... </div>
<div>libgcc_s_sjlj-1.dll w/ mingw32<br></div><div>libgcc_s_seh-1.dll w/ mingw64<br></div><div><br></div><div>I could take them out of the foreach loop and check for them separately but I was looking for something a bit more elegant which is why I added the NAMES modifier to find_library. </div>
<div><br></div><div>Is there a way to pass both to the find_library macro? I tried making them a list but then foreach iterated over them. I tried putting them in quotes but then it treats them as a string...</div><div><br>
</div><div>Ideas?</div><div><br></div><div>Thanks,</div><div>Richard</div></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" 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" 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" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</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></blockquote></div><br><br clear="all"><div><br></div>-- <br>Pau Garcia i Quiles<br><a href="http://www.elpauer.org">http://www.elpauer.org</a><br>
(Due to my workload, I may need 10 days to answer)
</div>