Adding openmp to missing modules

LT1AB
piyushrpt 2020-07-18 14:42:58 -07:00
parent 2cc8178010
commit 9b3e531ac5
7 changed files with 35 additions and 5 deletions

View File

@ -11,6 +11,11 @@ set_property(TARGET formslcLib PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(formslcLib PUBLIC
utilLib
)
if(TARGET OpenMP::OpenMP_Fortran)
target_link_libraries(formslcLib PUBLIC
OpenMP::OpenMP_Fortran
)
endif()
set(mdir ${CMAKE_CURRENT_BINARY_DIR}/formslc_fortran_modules)
set_property(TARGET formslcLib PROPERTY Fortran_MODULE_DIRECTORY ${mdir})

View File

@ -5,7 +5,11 @@ Python_add_library(correct MODULE
src/correctState.f
)
target_include_directories(correct PUBLIC include)
if(TARGET OpenMP::OpenMP_Fortran)
target_link_libraries(correct PUBLIC
OpenMP::OpenMP_Fortran
)
endif()
InstallSameDir(
correct
__init__.py

View File

@ -4,7 +4,11 @@ Python_add_library(crossmul MODULE
src/crossmul.f90
)
target_include_directories(crossmul PUBLIC include)
if(TARGET OpenMP::OpenMP_Fortran)
target_link_libraries(crossmul PUBLIC
OpenMP::OpenMP_Fortran
)
endif()
InstallSameDir(
crossmul
__init__.py

View File

@ -12,7 +12,11 @@ target_link_libraries(mocompTSX
formslcLib
utilLib
)
if(TARGET OpenMP::OpenMP_Fortran)
target_link_libraries(mocompTSX PUBLIC
OpenMP::OpenMP_Fortran
)
endif()
InstallSameDir(
mocompTSX
__init__.py

View File

@ -11,7 +11,11 @@ target_link_libraries(offsetpoly PUBLIC
combinedLib
utilLib
)
if(TARGET OpenMP::OpenMP_Fortran)
target_link_libraries(offsetpoly PUBLIC
OpenMP::OpenMP_Fortran
)
endif()
InstallSameDir(
offsetpoly
__init__.py

View File

@ -10,7 +10,11 @@ target_include_directories(resamp PUBLIC include)
target_link_libraries(resamp PUBLIC
utilLib
)
if(TARGET OpenMP::OpenMP_Fortran)
target_link_libraries(resamp PUBLIC
OpenMP::OpenMP_Fortran
)
endif()
InstallSameDir(
resamp
__init__.py

View File

@ -11,6 +11,11 @@ target_link_libraries(topo PUBLIC
combinedLib
utilLib
)
if(TARGET OpenMP::OpenMP_Fortran)
target_link_libraries(topo PUBLIC
OpenMP::OpenMP_Fortran
)
endif()
InstallSameDir(
topo