Merge pull request #242 from bast/radovan/omp-module-refactor
rm redundant line
This commit is contained in:
commit
fe28e29c0d
@ -42,6 +42,7 @@ if(ENABLE_OPENMP)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# this is only needed for CMake below 3.5
|
||||||
if(DEFINED CMAKE_Fortran_COMPILER_ID AND NOT DEFINED OpenMP_Fortran_FLAGS)
|
if(DEFINED CMAKE_Fortran_COMPILER_ID AND NOT DEFINED OpenMP_Fortran_FLAGS)
|
||||||
# we do this in a pedestrian way because the Fortran support is relatively recent
|
# we do this in a pedestrian way because the Fortran support is relatively recent
|
||||||
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
|
if(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
|
||||||
@ -50,8 +51,7 @@ if(ENABLE_OPENMP)
|
|||||||
if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
|
if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Qopenmp")
|
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Qopenmp")
|
||||||
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "Intel" AND
|
elseif("${CMAKE_Fortran_COMPILER_VERSION}" VERSION_LESS "15.0.0.20140528")
|
||||||
"${CMAKE_Fortran_COMPILER_VERSION}" VERSION_LESS "15.0.0.20140528")
|
|
||||||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -openmp")
|
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -openmp")
|
||||||
else()
|
else()
|
||||||
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -qopenmp")
|
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -qopenmp")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user