[Cmake] more specific uname

Bill Hoffman bill . hoffman at kitware . com
Fri, 20 Jun 2003 09:08:19 -0400


In CMake cvs, the following is now run automatically:
  
  IF(CMAKE_UNAME)
    EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR)
  ENDIF(CMAKE_UNAME)

You should be able to add that to the top of your project.

-Bill

At 03:56 PM 6/19/2003, Zennard Sun wrote:
>Hi,
>   I was wondering if there was a way to get a more specific result to uname, such as the machine hardware name (the -m option for uname) since I need to define different flags for AMD and Pentium processors (I already know you can get the operating system with CMAKE_SYSTEM).  Or is there a way to run and store the result this command in a variable?  
>Thanks a lot.
>
>
>Thanks,
>
>Zennard Sun
>
>
>_______________________________________________
>Cmake mailing list
>Cmake at www . cmake . org
>http://www . cmake . org/mailman/listinfo/cmake