Skip to content

Commit

Permalink
Merge pull request #920 from weslleyspereira/makes-cmake-independent-…
Browse files Browse the repository at this point in the history
…from-Fortran

Always use C as linker language for CBLAS
  • Loading branch information
langou authored Nov 1, 2023
2 parents 33b3a45 + dfb84d0 commit 7a29cfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CBLAS/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ if(BUILD_INDEX64_EXT_API)
add_library(${CBLASLIB}_64_fobj OBJECT ${SOURCES_64_F})
set_target_properties(${CBLASLIB}_64_cobj ${CBLASLIB}_64_fobj PROPERTIES
POSITION_INDEPENDENT_CODE ON
Fortran_PREPROCESS ON)
Fortran_PREPROCESS ON
LINKER_LANGUAGE C)
target_compile_options(${CBLASLIB}_64_cobj PRIVATE -DWeirdNEC -DCBLAS_API64)
target_compile_options(${CBLASLIB}_64_fobj PRIVATE ${FOPT_ILP64})
#Add suffix to all Fortran functions via macros
Expand Down

0 comments on commit 7a29cfe

Please sign in to comment.