Skip to content

Commit

Permalink
Add hint for linker in examples and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ashao committed Jul 2, 2024
1 parent 783e335 commit 22b4b43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/parallel/fortran/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ foreach(EXECUTABLE ${EXECUTABLES})
)
set_target_properties(${EXECUTABLE}_fortran_parallel PROPERTIES
OUTPUT_NAME ${EXECUTABLE}
LINKER_LANGUAGE Fortran
)
target_link_libraries(${EXECUTABLE}_fortran_parallel
${SMARTREDIS_LIBRARIES}
Expand Down
1 change: 1 addition & 0 deletions examples/serial/fortran/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ foreach(EXECUTABLE ${EXECUTABLES})
)
set_target_properties(${EXECUTABLE}_fortran_serial PROPERTIES
OUTPUT_NAME ${EXECUTABLE}
LINKER_LANGUAGE Fortran
)
target_link_libraries(${EXECUTABLE}_fortran_serial
smartredis
Expand Down
1 change: 1 addition & 0 deletions tests/fortran/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ foreach(EXECUTABLE ${EXECUTABLES})
)
set_target_properties(${EXECUTABLE}_fortran_test PROPERTIES
OUTPUT_NAME ${EXECUTABLE}
LINKER_LANGUAGE Fortran
)
target_link_libraries(${EXECUTABLE}_fortran_test
smartredis smartredis-fortran test-utils
Expand Down

0 comments on commit 22b4b43

Please sign in to comment.