diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-14 20:07:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-14 20:07:11 (GMT) |
commit | 9d9582ffef2ab58f859a28d012cf89ee38c3a411 (patch) | |
tree | 519a0e38aef23a6d4c77897dde02d8d1273ad72f /Modules/CMakeCXXInformation.cmake | |
parent | ec9f2a18cc67d54c48dc8e88bc6edad23c611a34 (diff) | |
download | CMake-9d9582ffef2ab58f859a28d012cf89ee38c3a411.zip CMake-9d9582ffef2ab58f859a28d012cf89ee38c3a411.tar.gz CMake-9d9582ffef2ab58f859a28d012cf89ee38c3a411.tar.bz2 |
ENH: fix problem where rc language recursively included itself because CMAKE_BASE_NAME was used from c compiler, do the same fix for other uses of CMAKE_BASE_NAME
Diffstat (limited to 'Modules/CMakeCXXInformation.cmake')
-rw-r--r-- | Modules/CMakeCXXInformation.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeCXXInformation.cmake b/Modules/CMakeCXXInformation.cmake index c5608e0..a5923a3 100644 --- a/Modules/CMakeCXXInformation.cmake +++ b/Modules/CMakeCXXInformation.cmake @@ -13,7 +13,7 @@ ELSE(UNIX) SET(CMAKE_CXX_OUTPUT_EXTENSION .obj) ENDIF(UNIX) - +SET(CMAKE_BASE_NAME) GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_CXX_COMPILER} NAME_WE) # since the gnu compiler has several names force g++ IF(CMAKE_COMPILER_IS_GNUCXX) |