summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCCompiler.cmake
blob: c1fc85c7adb720d36be3e1a557a7d5a647e23bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
# determine the compiler to use for C programs
# NOTE, a generator may set CMAKE_C_COMPILER before
# loading this file to force a compiler.

FIND_PROGRAM(CMAKE_C_COMPILER NAMES $ENV{CC} gcc cc cl bcc PATHS /bin /usr/bin /usr/local/bin )


# to check for is gnu we need to compile this:
#  #ifdef __GNUC__
#  yes;
#  #endif