Warning, /frameworks/extra-cmake-modules/toolchain/hasMainSymbol.cmake is written in an unsupported language. File is not indexed.
0001 execute_process(COMMAND nm --dynamic ${TARGET} ERROR_VARIABLE nm_errors OUTPUT_VARIABLE out RESULT_VARIABLE result) 0002 0003 if (NOT result EQUAL 0) 0004 message(FATAL_ERROR "nm failed on ${TARGET} exit(${result}): ${nm_errors}") 0005 endif() 0006 0007 string(FIND ${out} " T main\n" found) 0008 if(found LESS 0) 0009 message(FATAL_ERROR "Could not find a main() symbol on ${TARGET}") 0010 endif()