summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-07-16 15:03:58 (GMT)
committerBrad King <brad.king@kitware.com>2008-07-16 15:03:58 (GMT)
commit2bc9acb1cad11f86ac737658a2355d80420133a5 (patch)
treed7305d756ad5070737825d95577e68876b1ddcd7 /Source/cmGlobalGenerator.h
parent299a0c826b22f061effbf830502eb9aa19a7ed98 (diff)
downloadCMake-2bc9acb1cad11f86ac737658a2355d80420133a5.zip
CMake-2bc9acb1cad11f86ac737658a2355d80420133a5.tar.gz
CMake-2bc9acb1cad11f86ac737658a2355d80420133a5.tar.bz2
BUG: Fix try_compile during EnableLanguage
- The source-file signature of try_compile looks up the language of the source file using the extension-to-language map so that it knows what language to enable in the generated project. - This map needs to be filled before loading a file specified by CMAKE_USER_MAKE_RULES_OVERRIDE CMAKE_USER_MAKE_RULES_OVERRIDE_<LANG> so that the user file may call the try_compile() source-file signature. - It must still be re-filled after loading CMake<LANG>Information.cmake in case the compiler- or platform-specific files added anything. - See bug #7340.
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index a76890b..bc4e74b 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -264,6 +264,7 @@ protected:
projectTargets);
void SetLanguageEnabledFlag(const char* l, cmMakefile* mf);
void SetLanguageEnabledMaps(const char* l, cmMakefile* mf);
+ void FillExtensionToLanguageMap(const char* l, cmMakefile* mf);
virtual bool CheckALLOW_DUPLICATE_CUSTOM_TARGETS();