diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-20 23:08:12 -0500 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-02-20 23:08:12 -0500 |
commit | e015df7d06a2b591571228cba10c5268a8f8fccd (patch) | |
tree | 3b25646b59d65a98d7a34edeeda9ac895d4bb0bc /Modules | |
parent | 2cb68f60003d0dbe9a2f91663ebca7de3b16c8f1 (diff) | |
download | cmake-e015df7d06a2b591571228cba10c5268a8f8fccd.tar.gz |
ENH: better finding of mingw from msys, and delete CMakeFiles directory when cache is deleted
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeDetermineCCompiler.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake index cd74194d6a..0c59db39f0 100644 --- a/Modules/CMakeDetermineCCompiler.cmake +++ b/Modules/CMakeDetermineCCompiler.cmake @@ -41,7 +41,10 @@ IF(NOT CMAKE_C_COMPILER) SET(CMAKE_C_COMPILER ${CMAKE_C_COMPILER_INIT} CACHE STRING "C compiler") ENDIF(NOT CMAKE_C_COMPILER) MARK_AS_ADVANCED(CMAKE_C_COMPILER) -FIND_PROGRAM(CMAKE_AR NAMES ar PATHS /mingw/bin c:/mingw/bin /msys/1.0/bin c:/msys/1.0/bin ) +GET_FILENAME_COMPONENT(COMPILER_LOCATION "${CMAKE_C_COMPILER}" + PATH) + +FIND_PROGRAM(CMAKE_AR NAMES ar PATHS ${COMPILER_LOCATION} ) FIND_PROGRAM(CMAKE_RANLIB NAMES ranlib) IF(NOT CMAKE_RANLIB) |