Arjen Markus wrote: > On 2010-01-28 17:18, Brad King wrote: >> >> Thanks. Undo the previous patch and try the one below instead. >> > > I applied the patch and it all worked fine. That is, CMake now > recognises the compiler but does not test it with the correct > compile flags (-o being reported as ambiguous). I can send the > error report if you want. > > At least we have a succesful first step.
Great. I've committed the underlying compiler id method to CMake upstream, plus a test: Add alternate per-vendor compiler id detection /cvsroot/CMake/CMake/Modules/CMakeDetermineCompilerId.cmake,v <-- Modules/CMakeDetermineCompilerId.cmake new revision: 1.22; previous revision: 1.21 /cvsroot/CMake/CMake/Tests/CMakeTests/CMakeLists.txt,v <-- Tests/CMakeTests/CMakeLists.txt new revision: 1.26; previous revision: 1.25 /cvsroot/CMake/CMake/Tests/CMakeTests/CompilerIdVendorTest.cmake.in,v <-- Tests/CMakeTests/CompilerIdVendorTest.cmake.in new revision: 1.2; previous revision: 1.1 I did not yet commit the actual Compaq compiler entry. That will be just the patch below. Please try CMake HEAD from CVS plus the patch below. Then add Compaq compiler support by creating a "Platform/Windows-Compaq-Fortran.cmake" file that sets the build rules and flags for that compiler. Content will be similar to the Windows-f90.cmake file that Alan sent. -Brad diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake index 44e45d8..0637d20 100644 --- a/Modules/CMakeDetermineFortranCompiler.cmake +++ b/Modules/CMakeDetermineFortranCompiler.cmake @@ -162,6 +162,11 @@ IF(NOT CMAKE_Fortran_COMPILER_ID_RUN) "-fpp" ) + # Table of per-vendor compiler id flags with expected output. + LIST(APPEND CMAKE_Fortran_COMPILER_ID_VENDORS Compaq) + SET(CMAKE_Fortran_COMPILER_ID_VENDOR_FLAGS_Compaq "-what") + SET(CMAKE_Fortran_COMPILER_ID_VENDOR_REGEX_Compaq "Compaq Visual Fortran") + # Try to identify the compiler. SET(CMAKE_Fortran_COMPILER_ID) INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake) _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake