Skip to content

Commit

Permalink
Use FTN for linking
Browse files Browse the repository at this point in the history
  • Loading branch information
alazzaro committed Jul 22, 2024
1 parent 97038f3 commit b0afecc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ if (WITH_C_API)
set(dbcsr_program_name ${dbcsr_program_name}_cpp)
add_executable(${dbcsr_program_name} ${dbcsr_program_src})
target_link_libraries(${dbcsr_program_name} dbcsr_c MPI::MPI_CXX)
set_target_properties(${dbcsr_program_name} PROPERTIES LINKER_LANGUAGE CXX)
set_target_properties(${dbcsr_program_name} PROPERTIES LINKER_LANGUAGE
Fortran)
if (OpenMP_FOUND)
target_link_libraries(${dbcsr_program_name} OpenMP::OpenMP_CXX)
target_compile_options(${dbcsr_program_name} PRIVATE ${OpenMP_CXX_FLAGS})
target_link_libraries(${dbcsr_program_name} OpenMP::OpenMP_Fortran)
endif ()

if (CMAKE_CXX_COMPILER_ID STREQUAL "Cray")
Expand Down

0 comments on commit b0afecc

Please sign in to comment.