-
So I have a project (experimental), I decided it will be cool if I make an elf32 binary, so I configure my cmake such a order that I can toggle if I want to build x64 bit or x32 bit binary. So far x64 binary compiled and linked with no error. But when I tried to build x32 binary I get that lld always linking with x64 library.
Yes, I already downloaded x32 library.Yes, I already configure the cmake which it can be seen below.
what I had done that when I build the project and I add |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Note Settings which are meant to affect the toolchain must be before the FTR some of the variables you set in your project have no effect because they are for script mode when portfiles control port builds (e.g. |
Beta Was this translation helpful? Give feedback.
Note
installed/x64-linux
: This is the location for thex64-linux
artifacts, which implies x64. What you want isx86-linux
. And that's what you try to set in your project, but...Settings which are meant to affect the toolchain must be before the
project()
command. In particular:VCPKG_TARGET_TRIPLET
.https://learn.microsoft.com/en-us/vcpkg/users/buildsystems/cmake-integration#settings-reference
FTR some of the variables you set in your project have no effect because they are for script mode when portfiles control port b…