Skip to content

Commit d811d85

Browse files
authored
Merge pull request #940 from ACSimon33/void_main_fix_for_apple_clang
2 parents 4b8a925 + d2c2de1 commit d811d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CBLAS/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(NOT FortranCInterface_GLOBAL_FOUND OR NOT FortranCInterface_MODULE_FOUND)
2222
endif()
2323

2424
include(CheckCSourceCompiles)
25-
check_c_source_compiles("void __attribute__((weak)) main() {};"
25+
check_c_source_compiles("int __attribute__((weak)) main() {};"
2626
HAS_ATTRIBUTE_WEAK_SUPPORT)
2727

2828
include_directories(include ${LAPACK_BINARY_DIR}/include)

0 commit comments

Comments
 (0)