fix for problem with F90 modules observed on IBM

This commit is contained in:
Radovan Bast 2015-08-01 10:41:50 +02:00
parent 1ee3961c88
commit d1d488d07f
2 changed files with 6 additions and 4 deletions

View File

@ -11,7 +11,7 @@
#
# Variables defined::
#
# CMAKE_Fortran_MODULE_DIRECTORY (${PROJECT_BINARY_DIR}/include/fortran)
# CMAKE_Fortran_MODULE_DIRECTORY
#
# Variables modified::
#
@ -30,7 +30,8 @@
enable_language(Fortran)
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/include/fortran)
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/modules)
include_directories(${PROJECT_BINARY_DIR}/modules)
if(NOT DEFINED CMAKE_Fortran_COMPILER_ID)
message(FATAL_ERROR "CMAKE_Fortran_COMPILER_ID variable is not defined!")

View File

@ -12,7 +12,7 @@
#
# Variables defined::
#
# CMAKE_Fortran_MODULE_DIRECTORY (${PROJECT_BINARY_DIR}/include/fortran)
# CMAKE_Fortran_MODULE_DIRECTORY
#
# Variables modified::
#
@ -40,7 +40,8 @@ option(ENABLE_FC_SUPPORT "Enable Fortran language support" ON)
if(ENABLE_FC_SUPPORT)
enable_language(Fortran)
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/include/fortran)
set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/modules)
include_directories(${PROJECT_BINARY_DIR}/modules)
if(NOT DEFINED CMAKE_Fortran_COMPILER_ID)
message(FATAL_ERROR "CMAKE_Fortran_COMPILER_ID variable is not defined!")