CMakeDetermineCCompiler: Fix typo "_CXX_" -> "_C_" (#13330)
Initialize CMAKE_C_COMPILER_INIT before using it, rather than CMAKE_CXX_COMPILER_INIT.
This commit is contained in:
parent
30305b989e
commit
b9ccaf5f79
|
@ -32,7 +32,7 @@
|
||||||
# _CMAKE_TOOLCHAIN_PREFIX
|
# _CMAKE_TOOLCHAIN_PREFIX
|
||||||
|
|
||||||
IF(NOT CMAKE_C_COMPILER)
|
IF(NOT CMAKE_C_COMPILER)
|
||||||
SET(CMAKE_CXX_COMPILER_INIT NOTFOUND)
|
SET(CMAKE_C_COMPILER_INIT NOTFOUND)
|
||||||
|
|
||||||
# prefer the environment variable CC
|
# prefer the environment variable CC
|
||||||
IF($ENV{CC} MATCHES ".+")
|
IF($ENV{CC} MATCHES ".+")
|
||||||
|
|
Loading…
Reference in New Issue