1
1

Add support for Intel Fortran compiler 12 on Windows.

This commit was SVN r24538.
Этот коммит содержится в:
Shiqing Fan 2011-03-17 12:08:13 +00:00
родитель bffa5c8f7e
Коммит aac0db05bb

Просмотреть файл

@ -22,6 +22,7 @@ IF(OMPI_WANT_F77_BINDINGS AND NOT F77_SETUP_DONE)
SET(OMPI_MPI_INTEGER_KIND 0 CACHE INTERNAL "MPI_INTEGER_KIND")
SET(OMPI_MPI_ADDRESS_KIND 0 CACHE INTERNAL "MPI_ADDRESS_KIND")
SET(OMPI_MPI_OFFSET_KIND 0 CACHE INTERNAL "MPI_OFFSET_KIND")
SET(OMPI_FORTRAN_STATUS_SIZE 0 CACHE INTERNAL "MPI_STATUS_SIZE")
GET_FILENAME_COMPONENT(F77_NAME ${CMAKE_Fortran_COMPILER} NAME)
GET_FILENAME_COMPONENT(F77_PATH ${CMAKE_Fortran_COMPILER} PATH)
@ -42,10 +43,16 @@ IF(OMPI_WANT_F77_BINDINGS AND NOT F77_SETUP_DONE)
SET(F77_DYNAMIC_FLAG "/MD" CACHE INTERNAL
"Compile flag for using dynamically-loaded, multithread C runtime.")
IF(NOT "$ENV{IFORT_COMPILER11}" STREQUAL "")
SET(IFORT_LIB_PATH "$ENV{IFORT_COMPILER11}/lib/")
ELSEIF(NOT "$ENV{IFORT_COMPILER12}" STREQUAL "")
SET(IFORT_LIB_PATH "$ENV{IFORT_COMPILER12}/compiler/lib/")
ENDIF(NOT "$ENV{IFORT_COMPILER11}" STREQUAL "")
IF(CMAKE_CL_64)
SET(F77_LIB_PATH "$ENV{IFORT_COMPILER11}/lib/intel64")
SET(F77_LIB_PATH "${IFORT_LIB_PATH}/intel64")
ELSE(CMAKE_CL_64)
SET(F77_LIB_PATH "$ENV{IFORT_COMPILER11}/lib/ia32")
SET(F77_LIB_PATH "${IFORT_LIB_PATH}/ia32")
ENDIF(CMAKE_CL_64)
IF(NOT F77_LIB_PATH)