[CMake] CMakeDetermineSystem.cmake

Brad King brad.king at kitware.com
Tue Oct 3 10:00:25 EDT 2006


Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
> 	Is there a module like CMakeDetermineSystem.cmake
> that would tell the specific Linux distribution and
> architecture that compilation is running on? I would like to 
> use it to attach it to package name generated by CPack. 

There is nothing to identify the specific linux distro (debian, fedora,
etc.) but once you know it is a unix platform you can use
EXECUTE_PROCESS to run uname and get whatever you want.  The output can
be parsed using STRING(REGEX).

-Brad


More information about the CMake mailing list