Add missing module_dir property

This commit is contained in:
Allen Byrne 2018-05-09 08:44:45 -05:00
parent 7aeebec946
commit 4069936ee4
3 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,7 @@ endif()
set_target_properties (parallel_test PROPERTIES
FOLDER test/fortran
LINKER_LANGUAGE Fortran
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
)
endif ()

View File

@ -32,6 +32,7 @@ foreach (example ${examples})
set_target_properties (hl_f90_ex_${example} PROPERTIES
LINKER_LANGUAGE Fortran
FOLDER examples/hl/fortran
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
)
endforeach ()

View File

@ -37,6 +37,7 @@ macro (ADD_H5_FORTRAN_EXE file)
set_target_properties (hl_f90_${file} PROPERTIES
LINKER_LANGUAGE Fortran
FOLDER test/hl/fortran
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
)
if (BUILD_SHARED_LIBS)
add_executable (hl_f90_${file}-shared ${file}.F90)