summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCCompiler.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-28 12:39:29 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-28 12:39:29 (GMT)
commit16df2456a440d87fb3e8e53fb59a2817b288b9af (patch)
treea44c27696661e6edd6222dc01e4d783f3821010c /Modules/CMakeDetermineCCompiler.cmake
parentecc6d7f9190a660c0f442c4d03854b06e3fc7856 (diff)
parent3e04946f7b69418f6b222875ad18fed3438e0fa1 (diff)
downloadCMake-16df2456a440d87fb3e8e53fb59a2817b288b9af.zip
CMake-16df2456a440d87fb3e8e53fb59a2817b288b9af.tar.gz
CMake-16df2456a440d87fb3e8e53fb59a2817b288b9af.tar.bz2
Merge topic 'enable-language-require-compiler'
3e04946 Require CMAKE_<LANG>_COMPILER to be found as a full path 6007f7c CMakeDetermineCompilerId: Always use compiler detected from IDE 332771c CMakeDetermine*Compiler: Remove temporary cache entry
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineCCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake
index 9126988..1ae84ee 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -92,10 +92,10 @@ else()
get_filename_component(_CMAKE_USER_C_COMPILER_PATH "${CMAKE_C_COMPILER}" PATH)
if(NOT _CMAKE_USER_C_COMPILER_PATH)
find_program(CMAKE_C_COMPILER_WITH_PATH NAMES ${CMAKE_C_COMPILER})
- mark_as_advanced(CMAKE_C_COMPILER_WITH_PATH)
if(CMAKE_C_COMPILER_WITH_PATH)
set(CMAKE_C_COMPILER ${CMAKE_C_COMPILER_WITH_PATH} CACHE STRING "C compiler" FORCE)
endif()
+ unset(CMAKE_C_COMPILER_WITH_PATH CACHE)
endif()
endif()
mark_as_advanced(CMAKE_C_COMPILER)