Hi, list!<br>I wan't use cmake + MSVC2010SP1 via wine on Linux (Ubuntu 12.04).<br>In first step, I need compile CMake self on Linux, so the cross compilation is should to go.<br>I edit the CMake 2.8.9's main CMakeLists.txt, added these line:<br>
<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">if (MINGW)<br> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static-libgcc")<br> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")<br>
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS} -static-libgcc -s")<br> set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS} -static-libgcc -static-libstdc++ -s")<br>
endif()<br clear="all"></blockquote><br>and it works.<br>But I thought it possible not correct.<br>Because it's more complex.<br><br>Does there exist a simply way to solve my problem?<br>Thanks!<br>-- <br><div>Best Regards</div>
<div>Yuchen</div><br>