Skip to content

Commit d2c2de1

Browse files
committed
Changed void main() to int main() in CMake check because AppleClang doesn't allow it
1 parent 4b8a925 commit d2c2de1

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)