Hi, list!
I wan't use cmake + MSVC2010SP1 via wine on Linux (Ubuntu 12.04).
In first step, I need compile CMake self on Linux, so the cross compilation
is should to go.
I edit the CMake 2.8.9's main CMakeLists.txt, added these line:
if (MINGW)
> set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -static-libgcc")
> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc
> -static-libstdc++")
> set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS
> "${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS} -static-libgcc -s")
> set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS
> "${CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS} -static-libgcc -static-libstdc++
> -s")
> endif()
>
and it works.
But I thought it possible not correct.
Because it's more complex.
Does there exist a simply way to solve my problem?
Thanks!
--
Best Regards
Yuchen
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake