If it doesn't run correctly set acceleration to None and
print warning. Same as check whether it compiled, which already
existed.
Change-Id: I59a2d531c41f931d162725540d5483b39aa7a3df
message(WARNING "Cannot compile CPU detection code, which means no optimization.")
message(STATUS "Compile output: ${GMX_DETECTCPU_COMPILE_OUTPUT}")
set(OUTPUT_TMP "None")
+ elseif(NOT GMX_DETECTCPU_RUN_ACC EQUAL 0)
+ message(WARNING "Cannot run CPU detection code, which means no optimization.")
+ message(STATUS "Run output: ${OUTPUT_TMP}")
+ set(OUTPUT_TMP "None")
endif(NOT GMX_DETECTCPU_COMPILED)
string(STRIP "@OUTPUT_TMP@" OUTPUT_ACC)