[CMake] FindPkgConfig and using -m32 on Linux
Marc Herbert
marc.herbert at gmail.com
Wed Feb 27 19:03:19 EST 2019
> 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?
More information about the CMake
mailing list