[cmake-developers] [CMake 0015372]: CMAKE_Fortran_COMPILER_VERSION is never set but FindOpenMP.cmake depends on it
Mantis Bug Tracker
mantis at public.kitware.com
Mon Jan 26 13:10:55 EST 2015
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
======================================================================
More information about the cmake-developers
mailing list