summaryrefslogtreecommitdiff
path: root/Modules/CMakeDetermineCCompiler.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-12 16:58:38 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-12 16:58:38 -0500
commit83d273334a9a5643ecc59d37601295bd62ed1fb8 (patch)
treedabfc3e98f75de9dbe231ba9b680cd97251e46fa /Modules/CMakeDetermineCCompiler.cmake
parent4b7b9ab2ec8b044014f51f74f4a121f347ea2744 (diff)
downloadcmake-83d273334a9a5643ecc59d37601295bd62ed1fb8.tar.gz
BUG: fix path problems
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 aac39a804e..f4a037cf2b 100644
--- a/Modules/CMakeDetermineCCompiler.cmake
+++ b/Modules/CMakeDetermineCCompiler.cmake
@@ -7,7 +7,7 @@
IF(NOT CMAKE_C_COMPILER)
FIND_PROGRAM(CMAKE_C_COMPILER_FULLPATH NAMES $ENV{CC} ${CMAKE_GENERATOR_CC} gcc cc cl bcc )
- GET_FILENAME_COMPONENT(CMAKE_C_COMPILER ${CMAKE_C_COMPILER_FULLPATH} NAME_WE)
+ GET_FILENAME_COMPONENT(CMAKE_C_COMPILER ${CMAKE_C_COMPILER_FULLPATH} NAME)
# set this to notfound right after so that it is searched for each time this
# file is included
SET(CMAKE_C_COMPILER_FULLPATH NOTFOUND CACHE INTERNAL "full path to c compiler" FORCE)