Skip to content

Commit

Permalink
Merge pull request #940 from ACSimon33/void_main_fix_for_apple_clang
Browse files Browse the repository at this point in the history
  • Loading branch information
langou authored Nov 15, 2023
2 parents 4b8a925 + d2c2de1 commit d811d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CBLAS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(NOT FortranCInterface_GLOBAL_FOUND OR NOT FortranCInterface_MODULE_FOUND)
endif()

include(CheckCSourceCompiles)
check_c_source_compiles("void __attribute__((weak)) main() {};"
check_c_source_compiles("int __attribute__((weak)) main() {};"
HAS_ATTRIBUTE_WEAK_SUPPORT)

include_directories(include ${LAPACK_BINARY_DIR}/include)
Expand Down

0 comments on commit d811d85

Please sign in to comment.