diff options
author | Brad King <brad.king@kitware.com> | 2008-07-16 15:03:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-07-16 15:03:58 (GMT) |
commit | 2bc9acb1cad11f86ac737658a2355d80420133a5 (patch) | |
tree | d7305d756ad5070737825d95577e68876b1ddcd7 /Source/cmGlobalGenerator.h | |
parent | 299a0c826b22f061effbf830502eb9aa19a7ed98 (diff) | |
download | CMake-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.h | 1 |
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(); |