> On 17 Jan 2019, at 04:57, Jan Wielemaker <jan at swi-prolog.org> wrote:
>
> I got very far using
>
> set(CMAKE_C_FLAGS -m32)
Maybe not going to solve your main issue but worth changing anyway to:
set(CMAKE_C_FLAGS "-m32 ${CMAKE_C_FLAGS}")
With your previous and simpler code, passing any cmake
-DCMAKE_C_FLAGS_RELEASE/DEBUG/etc. on the command line will still work except
for the “empty” one! Very confusing and learned the hard way :-)
You also want:
set(CMAKE_ASM_FLAGS "-m32 ${CMAKE_ASM_FLAGS}")
set(CMAKE_CXX_FLAGS "-m32 ${CMAKE_CXX_FLAGS}")
other?
--
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