Hello, 

I am currently using TDM-GCC-64 (MinGW) and MSVC to build binaries on 64 bit
Windows to build both 32 and 64bit binaries. However, I found architecture
passed to GNUtoMS bat is determined by CMAKE_SIZEOF_VOID_P which is not
correctly set. 

For GCC, I set
  SET(CMAKE_CXX_FLAGS "-m32 ${CMAKE_CXX_FLAGS}")
  SET(CMAKE_C_FLAGS "-m32 ${CMAKE_C_FLAGS}")
But, message(${CMAKE_SIZEOF_VOID_P }) is always 8. That causes GNUtoMS
generating x64 *.lib from x86 *.a. I don't know whether this is a bug or by
design. 

Thanks, 
Hao. 




--
Sent from: http://cmake.3232098.n2.nabble.com/
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to