diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-09-15 16:17:38 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-09-15 16:17:38 (GMT) |
commit | 8be3e4eeca49d7aee5dc2f31fcb0e84f91cfc75f (patch) | |
tree | ae4b45d52ff6d032cc25ea37a799ff33e881316d /Modules | |
parent | d2ff55bc8273344cdcf4427ec285f604b2f281a3 (diff) | |
download | CMake-8be3e4eeca49d7aee5dc2f31fcb0e84f91cfc75f.zip CMake-8be3e4eeca49d7aee5dc2f31fcb0e84f91cfc75f.tar.gz CMake-8be3e4eeca49d7aee5dc2f31fcb0e84f91cfc75f.tar.bz2 |
ENH: clean up EnableLanguage try to fix problem where try compile runs cmake
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeAddNewLanguage.txt | 17 | ||||
-rw-r--r-- | Modules/CMakeTestRCCompiler.cmake | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/Modules/CMakeAddNewLanguage.txt b/Modules/CMakeAddNewLanguage.txt new file mode 100644 index 0000000..203c39d --- /dev/null +++ b/Modules/CMakeAddNewLanguage.txt @@ -0,0 +1,17 @@ +CMakeDetermine(LANG)Compiler.cmake -> this should find the compiler for LANG and configure CMake(LANG)Compiler.cmake.in + +CMake(LANG)Compiler.cmake.in -> used by CMakeDetermine(LANG)Compiler.cmake + This file is used to store compiler information and is copied down into try + compile directories so that try compiles do not need to re-determine and test the LANG + +CMakeTest(LANG)Compiler.cmake -> test the compiler and set: + SET(CMAKE_(LANG)_COMPILER_WORKS 1 CACHE INTERNAL "") + +CMake(LANG)Information.cmake -> set up rule variables for LANG : + CMAKE_(LANG)_CREATE_SHARED_LIBRARY + CMAKE_(LANG)_CREATE_SHARED_MODULE + CMAKE_(LANG)_CREATE_STATIC_LIBRARY + CMAKE_(LANG)_COMPILE_OBJECT + CMAKE_(LANG)_LINK_EXECUTABLE + + diff --git a/Modules/CMakeTestRCCompiler.cmake b/Modules/CMakeTestRCCompiler.cmake index 360381a..4ce9353 100644 --- a/Modules/CMakeTestRCCompiler.cmake +++ b/Modules/CMakeTestRCCompiler.cmake @@ -6,3 +6,4 @@ # For now there is no way to do a try compile on just a .rc file # so just do nothing in here. +SET(CMAKE_RC_COMPILER_WORKS 1 CACHE INTERNAL "") |