[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] FindPkgConfig and using -m32 on Linux
From: Marc Herbert <marc.herbert () gmail ! com>
Date: 2019-02-28 0:03:19
Message-ID: 8E521C09-380D-489D-B035-E516066A2A87 () gmail ! com
[Download RAW message or body]
> 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic