The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=15845 
====================================================================== 
Reported By:                Damian Rouson
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15845
Category:                   (No Category)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-11-12 09:51 EST
Last Modified:              2015-11-12 09:51 EST
====================================================================== 
Summary:                    CMake fails to identify the Cray compilers' version
numbers
Description: 
As demonstrated below, CMake 3.0.1 fails to identify the version of the Cray C,
Fortran, and C++ compilers.  CMake 3.3.2 and CMake 3.4.0-rc3 exhibit the same
behavior.  This bug is also archived at
https://github.com/sourceryinstitute/AdHoc/tree/master/src/cmake.

Steps to Reproduce: 
> cat CMakeLists.txt 
project(cray_compiler_version_bug LANGUAGES Fortran C CXX)
if(
   "${CMAKE_Fortran_COMPILER_VERSION}" MATCHES "" AND 
   "${CMAKE_C_COMPILER_VERSION}"       MATCHES "" AND 
   "${CMAKE_CXX_COMPILER_VERSION}"     MATCHES "" 
  )
  message(FATAL_ERROR 
    "CMAKE_Fortran_COMPILER_VERSION, CMAKE_C_COMPILER_VERSION,
CMAKE_CXX_COMPILER_VERSION are all empty."
  )
endif()

> mkdir build && cd build

> FC=ftn cmake ..
-- The Fortran compiler identification is Cray
-- The C compiler identification is Cray
-- The CXX compiler identification is Cray
-- Check for working Fortran compiler: /opt/cray/craype/2.4.2/bin/ftn
-- Check for working Fortran compiler: /opt/cray/craype/2.4.2/bin/ftn  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /opt/cray/craype/2.4.2/bin/ftn supports Fortran 90
-- Checking whether /opt/cray/craype/2.4.2/bin/ftn supports Fortran 90 -- yes
-- Check for working C compiler: /opt/cray/craype/2.4.2/bin/cc
-- Check for working C compiler: /opt/cray/craype/2.4.2/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/cray/craype/2.4.2/bin/CC
-- Check for working CXX compiler: /opt/cray/craype/2.4.2/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:7 (message):
  CMAKE_Fortran_COMPILER_VERSION, CMAKE_C_COMPILER_VERSION,
  CMAKE_CXX_COMPILER_VERSION are all empty.


-- Configuring incomplete, errors occurred!
See also
"/home/users/p01923/AdHoc/src/cmake/bug-xxxxx/build/CMakeFiles/CMakeOutput.log".
p01923@swan:~/AdHoc/src/cmake/bug-xxxxx/build> cmake --version
cmake version 3.0.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-11-12 09:51 Damian Rouson  New Issue                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to