diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-03 16:03:41 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-03 16:03:41 (GMT) |
commit | c2ef51e1816fa9b82b1319b5c5c3cbfc3256cea1 (patch) | |
tree | 7381defd6dbc2d6532291eecb6c00d5c17b8f5f4 /Modules | |
parent | 652823dc8356272b0253718f56a9693872785cc9 (diff) | |
download | CMake-c2ef51e1816fa9b82b1319b5c5c3cbfc3256cea1.zip CMake-c2ef51e1816fa9b82b1319b5c5c3cbfc3256cea1.tar.gz CMake-c2ef51e1816fa9b82b1319b5c5c3cbfc3256cea1.tar.bz2 |
ENH: define language extensions in cmake files and not hard coded, also fix trycompile problem
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeCCompiler.cmake.in | 1 | ||||
-rw-r--r-- | Modules/CMakeCXXCompiler.cmake.in | 1 | ||||
-rw-r--r-- | Modules/CMakeFortranCompiler.cmake.in | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeCCompiler.cmake.in b/Modules/CMakeCCompiler.cmake.in index ad748ee..9ee5e59 100644 --- a/Modules/CMakeCCompiler.cmake.in +++ b/Modules/CMakeCCompiler.cmake.in @@ -14,3 +14,4 @@ IF(CMAKE_COMPILER_IS_MINGW) SET(MINGW 1) ENDIF(CMAKE_COMPILER_IS_MINGW) SET(CMAKE_COMPILER_IS_GNUCC_RUN 1) +SET(CMAKE_C_SOURCE_FILE_EXTENSIONS c) diff --git a/Modules/CMakeCXXCompiler.cmake.in b/Modules/CMakeCXXCompiler.cmake.in index 4324b98..fb533e4 100644 --- a/Modules/CMakeCXXCompiler.cmake.in +++ b/Modules/CMakeCXXCompiler.cmake.in @@ -3,3 +3,4 @@ SET(CMAKE_COMPILER_IS_GNUCXX @CMAKE_COMPILER_IS_GNUCXX@) SET(CMAKE_CXX_COMPILER_LOADED 1) SET(CMAKE_COMPILER_IS_GNUCC_RUN 1) +SET(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm) diff --git a/Modules/CMakeFortranCompiler.cmake.in b/Modules/CMakeFortranCompiler.cmake.in index 21a5f0d..6f7740b 100644 --- a/Modules/CMakeFortranCompiler.cmake.in +++ b/Modules/CMakeFortranCompiler.cmake.in @@ -14,3 +14,4 @@ IF(CMAKE_COMPILER_IS_MINGW) SET(MINGW 1) ENDIF(CMAKE_COMPILER_IS_MINGW) SET(CMAKE_COMPILER_IS_GNUG77_RUN 1) +SET(CMAKE_Fortran_SOURCE_FILE_EXTENSIONS f;F;f77;f90;for;f95) |