Adding openmp to missing modules
parent
2cc8178010
commit
9b3e531ac5
|
@ -11,6 +11,11 @@ set_property(TARGET formslcLib PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
target_link_libraries(formslcLib PUBLIC
|
target_link_libraries(formslcLib PUBLIC
|
||||||
utilLib
|
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(mdir ${CMAKE_CURRENT_BINARY_DIR}/formslc_fortran_modules)
|
||||||
set_property(TARGET formslcLib PROPERTY Fortran_MODULE_DIRECTORY ${mdir})
|
set_property(TARGET formslcLib PROPERTY Fortran_MODULE_DIRECTORY ${mdir})
|
||||||
|
|
|
@ -5,7 +5,11 @@ Python_add_library(correct MODULE
|
||||||
src/correctState.f
|
src/correctState.f
|
||||||
)
|
)
|
||||||
target_include_directories(correct PUBLIC include)
|
target_include_directories(correct PUBLIC include)
|
||||||
|
if(TARGET OpenMP::OpenMP_Fortran)
|
||||||
|
target_link_libraries(correct PUBLIC
|
||||||
|
OpenMP::OpenMP_Fortran
|
||||||
|
)
|
||||||
|
endif()
|
||||||
InstallSameDir(
|
InstallSameDir(
|
||||||
correct
|
correct
|
||||||
__init__.py
|
__init__.py
|
||||||
|
|
|
@ -4,7 +4,11 @@ Python_add_library(crossmul MODULE
|
||||||
src/crossmul.f90
|
src/crossmul.f90
|
||||||
)
|
)
|
||||||
target_include_directories(crossmul PUBLIC include)
|
target_include_directories(crossmul PUBLIC include)
|
||||||
|
if(TARGET OpenMP::OpenMP_Fortran)
|
||||||
|
target_link_libraries(crossmul PUBLIC
|
||||||
|
OpenMP::OpenMP_Fortran
|
||||||
|
)
|
||||||
|
endif()
|
||||||
InstallSameDir(
|
InstallSameDir(
|
||||||
crossmul
|
crossmul
|
||||||
__init__.py
|
__init__.py
|
||||||
|
|
|
@ -12,7 +12,11 @@ target_link_libraries(mocompTSX
|
||||||
formslcLib
|
formslcLib
|
||||||
utilLib
|
utilLib
|
||||||
)
|
)
|
||||||
|
if(TARGET OpenMP::OpenMP_Fortran)
|
||||||
|
target_link_libraries(mocompTSX PUBLIC
|
||||||
|
OpenMP::OpenMP_Fortran
|
||||||
|
)
|
||||||
|
endif()
|
||||||
InstallSameDir(
|
InstallSameDir(
|
||||||
mocompTSX
|
mocompTSX
|
||||||
__init__.py
|
__init__.py
|
||||||
|
|
|
@ -11,7 +11,11 @@ target_link_libraries(offsetpoly PUBLIC
|
||||||
combinedLib
|
combinedLib
|
||||||
utilLib
|
utilLib
|
||||||
)
|
)
|
||||||
|
if(TARGET OpenMP::OpenMP_Fortran)
|
||||||
|
target_link_libraries(offsetpoly PUBLIC
|
||||||
|
OpenMP::OpenMP_Fortran
|
||||||
|
)
|
||||||
|
endif()
|
||||||
InstallSameDir(
|
InstallSameDir(
|
||||||
offsetpoly
|
offsetpoly
|
||||||
__init__.py
|
__init__.py
|
||||||
|
|
|
@ -10,7 +10,11 @@ target_include_directories(resamp PUBLIC include)
|
||||||
target_link_libraries(resamp PUBLIC
|
target_link_libraries(resamp PUBLIC
|
||||||
utilLib
|
utilLib
|
||||||
)
|
)
|
||||||
|
if(TARGET OpenMP::OpenMP_Fortran)
|
||||||
|
target_link_libraries(resamp PUBLIC
|
||||||
|
OpenMP::OpenMP_Fortran
|
||||||
|
)
|
||||||
|
endif()
|
||||||
InstallSameDir(
|
InstallSameDir(
|
||||||
resamp
|
resamp
|
||||||
__init__.py
|
__init__.py
|
||||||
|
|
|
@ -11,6 +11,11 @@ target_link_libraries(topo PUBLIC
|
||||||
combinedLib
|
combinedLib
|
||||||
utilLib
|
utilLib
|
||||||
)
|
)
|
||||||
|
if(TARGET OpenMP::OpenMP_Fortran)
|
||||||
|
target_link_libraries(topo PUBLIC
|
||||||
|
OpenMP::OpenMP_Fortran
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
InstallSameDir(
|
InstallSameDir(
|
||||||
topo
|
topo
|
||||||
|
|
Loading…
Reference in New Issue