summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeRCInformation.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-14 20:07:11 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-14 20:07:11 (GMT)
commit9d9582ffef2ab58f859a28d012cf89ee38c3a411 (patch)
tree519a0e38aef23a6d4c77897dde02d8d1273ad72f /Modules/CMakeRCInformation.cmake
parentec9f2a18cc67d54c48dc8e88bc6edad23c611a34 (diff)
downloadCMake-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/CMakeRCInformation.cmake')
-rw-r--r--Modules/CMakeRCInformation.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeRCInformation.cmake b/Modules/CMakeRCInformation.cmake
index 382edbb..0efba7c 100644
--- a/Modules/CMakeRCInformation.cmake
+++ b/Modules/CMakeRCInformation.cmake
@@ -3,12 +3,15 @@
# It also loads the available platform file for the system-compiler
# if it exists.
+# make sure we don't use CMAKE_BASE_NAME from somewhere else
+SET(CMAKE_BASE_NAME)
GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_RC_COMPILER} NAME_WE)
SET(CMAKE_SYSTEM_AND_RC_COMPILER_INFO_FILE
${CMAKE_ROOT}/Modules/Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}.cmake)
INCLUDE(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
+
SET (CMAKE_RC_FLAGS "$ENV{RCFLAGS} ${CMAKE_RC_FLAGS_INIT}" CACHE STRING
"Flags for Fortran compiler.")