Hi,
I am running a github action to build/test an app using SFML.
As part of the build script, it clones SFML and builds it.
The problem occurs when I link the app with a x86 config, it complains (one error for every sfml call)
"error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall sf::Time::asMilliseconds(void)const"[/tt]
and
C:\Program Files (x86)\SFML\lib\sfml-window-d.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86'
The problem goes away if I build my app with x64 config. But I need a 32bit build.
I've looked at the SFML Cmake files and it seems that the 32/64 build decision is based on a size of a pointer, so not easily configurable.
How can I force a 32bit build of SFML on a 64bit machine?