Skip to content

Commit

Permalink
improvements from @Wentzell
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed Mar 8, 2024
1 parent 20e94df commit 854a856
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ add_custom_target(${module_name} ALL

# for Intel fortran compilers we manually have to link against libiomp5 (-fqopenmp is always on in f2py)
if(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
set(F2PY_COMMAND_PREFIX "LDFLAGS=-liomp5")
set(F2PY_INTEL_OPTIONS -liomp5 --fcompiler=intelem)
endif()

##generate the fortran python wrapper shared library
add_custom_command(
OUTPUT ${generated_module_file}
COMMAND ${CMAKE_COMMAND} -E env ${F2PY_COMMAND_PREFIX} ${TRIQS_PYTHON_EXECUTABLE} -m numpy.f2py --build-dir ${CMAKE_CURRENT_BINARY_DIR}/meson --f90exec=${CMAKE_Fortran_COMPILER} --f77exec=${CMAKE_Fortran_COMPILER} -c ${fortran_src_file} -m ${module_name} > elk_f2py.log
COMMAND ${TRIQS_PYTHON_EXECUTABLE} -m numpy.f2py --build-dir ${CMAKE_CURRENT_BINARY_DIR}/meson --f90exec=${CMAKE_Fortran_COMPILER} --f77exec=${CMAKE_Fortran_COMPILER} ${F2PY_INTEL_OPTIONS} -c ${fortran_src_file} -m ${module_name} > elk_f2py.log
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

Expand Down

0 comments on commit 854a856

Please sign in to comment.