FIND_NUM_PROCESSORS()
if ( ${PROCESSOR_COUNT} LESS "1" )
message(FATAL_ERROR "Num processors found is " ${PROCESSOR_COUNT})
endif ( ${PROCESSOR_COUNT} LESS "1" )
add_definitions( -DTARGET_NUM_CORES=${PROCESSOR_COUNT} )
When cross compiling wouldn't this take the PROCESSOR_COUNT rather than the target machine?
When cross compiling wouldn't this take the PROCESSOR_COUNT rather than the target machine?