Skip to content

Conversation

@raullaasner
Copy link

  • CMAKE_Fortran_COMPILER_VERSION was added to CACHE to prevent it from becoming unset after the second configuring. Previously, this variable was sometimes automatically unset which in turn affected variables such as opencoarrays_aware_compiler. I reported a bug about this so let's wait for a little while for the response.
  • The variable CMAKE_Fortran_COMPILER_VERSION is present starting with CMake 3.3 and therefore I think it's better to write the conditional not as (CMAKE_VERSION VERSION_GREATER 3.2.3) but (NOT CMAKE_VERSION VERSION_LESS 3.3). Similarly, at line 45, if the intention is to test whether GCC is at least version 5, it would be better to have (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 5). In other places, I can see conditionals such as (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER 4.9.2) (note that 4.9.3 has been released). If you agree with me, then I'd like to replace VERSION_GREATER with NOT ... VERSION_LESS and make the necessary changes everywhere.

@raullaasner raullaasner changed the title Prevented CMAKE_Fortran_COMPILER_VERSION from becoming undefined Prevent CMAKE_Fortran_COMPILER_VERSION from becoming undefined Aug 5, 2015
@raullaasner
Copy link
Author

Regarding the first issue - the bug has been confirmed and will be fixed starting with CMake 3.3.1. A temporary fix is required only until then.

rouson added a commit that referenced this pull request Aug 14, 2015
Prevent CMAKE_Fortran_COMPILER_VERSION from becoming undefined
@rouson rouson merged commit f92ef12 into sourceryinstitute:master Aug 14, 2015
@sourceryinstitute
Copy link
Collaborator

Thanks for the pull request, Raul ! I just merged it into the master branch. My apologies for the delayed review. I returned to work on Wednesday after a 10 days of business travel and vacation travel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants