From 71359f5b9dcbf2404fab4e201961d2ddc7f52ee7 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 21 May 2007 11:26:40 -0400 Subject: STYLE: use a separate source file for generating CMakeSystem.cmake if CMAKE_TOOLCHAIN_FILE is used Alex --- Modules/CMakeDetermineCCompiler.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Modules/CMakeDetermineCCompiler.cmake') diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake index fd46bd6d64..b3c7c6cfaa 100644 --- a/Modules/CMakeDetermineCCompiler.cmake +++ b/Modules/CMakeDetermineCCompiler.cmake @@ -62,6 +62,9 @@ IF(NOT CMAKE_C_COMPILER) ENDIF(CMAKE_C_COMPILER_INIT AND NOT CMAKE_C_COMPILER) ELSE(NOT CMAKE_C_COMPILER) + # we only get here if CMAKE_C_COMPILER was specified using -D or a pre-made CMakeCache.txt + # (e.g. via ctest) or set in CMAKE_TOOLCHAIN_FILE + # # if a compiler was specified by the user but without path, # now try to find it with the full path # if it is found, force it into the cache, -- cgit v1.2.1