Re: [CMake] How to determine CPU features

2010-03-26 Thread Alexander Tarasov
ot; as ${CMAKE_x} -- just like the OS type is exported in ${CMAKE_SYSTEM_NAME} I would suggest ${CMAKE_HOST_HAS_SSE2} , etc. Richard On Mar 26, 2010, at 6:23 PM, Alexander Tarasov wrote: Hi All, Is there a clean way to find out if host CPU supports MMX & SSE2 extensions? As far

[CMake] How to determine CPU features

2010-03-26 Thread Alexander Tarasov
Hi All, Is there a clean way to find out if host CPU supports MMX & SSE2 extensions? As far as I know this stuff is analyzed by cmake (am I wrong?). However I've did not find any way this info can be used in CMakeLists.txt. Best regards, Alexander.