The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15372 
====================================================================== 
Reported By:                Kelly Thompson
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15372
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-01-26 13:10 EST
Last Modified:              2015-01-26 13:10 EST
====================================================================== 
Summary:                    CMAKE_Fortran_COMPILER_VERSION is never set but
FindOpenMP.cmake depends on it
Description: 
I am trying to use FindOpenMP.cmake provided by cmake/3.1.1 but it is returning
the wrong value for ${OpenMP_Fortran_FLAGS} because the value of
CMAKE_Fortran_COMPILER_VERSION is never set by CMake. 

When using ifort 15, FindOpenMP returns the deprecated value for older versions
of ifort (ver < 15.0.0.20140528).

Steps to Reproduce: 
The missing value for CMAKE_Fortran_COMPILER_VERSION does not appear to depend
on the compiler chosen.  Running cmake with the CMakeLists.txt provided below
shows that the value is blank:

cmake_minimum_required(VERSION 3.1)
project(nofortranver CXX Fortran)
find_package(OpenMP)
message("
CMAKE_Fortran_COMPILER_ID      = ${CMAKE_Fortran_COMPILER_ID}
CMAKE_Fortran_COMPILER_VERSION = ${CMAKE_Fortran_COMPILER_VERSION}
")

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-01-26 13:10 Kelly Thompson 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