How to detect target architecture using CMake?
So I devised a rather creative solution to my problem… it appears that CMake has no functionality to detect the target architecture whatsoever. Now, we know we can easily do this in C because symbols like __i386__, __x86_64__, etc., will be defined depending on your environment. Fortunately CMake has a try_run function which will compile … Read more