While adding compiled from source glew libraries in VS 2017, I encountered:
LNK4272 library machine type 'x64' conflicts with target machine type 'x86'
Here, Point 2. was really helpful !
was curious about this while looking through:
github.com/alicevision/geogram/blob/05b3ef4edf0b87b5e52ff7f93a520e0e98ab3951/src/lib/geogram/basic/quaternion.h#L67