Skip to content

Instantly share code, notes, and snippets.

@ankeshanand
Created March 14, 2014 06:14
Show Gist options
  • Save ankeshanand/9542880 to your computer and use it in GitHub Desktop.
Save ankeshanand/9542880 to your computer and use it in GitHub Desktop.
#!/bin/sh
compiler="The compiler used is: `grep -oPrh 'CMAKE_C_COMPILER_ID "\K[^"]*' ../CMakeFiles/ | head -1`"
compiler_version="The compiler version is: `grep -oPrh 'CMAKE_C_COMPILER_VERSION "\K[^"]*' ../CMakeFiles/ | head -1`"
echo "$compiler"
echo "$compiler_version"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment