Build: add WITH_CYCLES define for creator

Recently added cycles options weren't included in the help message.

Also quiet extra token warning.
This commit is contained in:
Campbell Barton
2023-05-27 14:16:44 +10:00
parent d133d622c1
commit a5fe656c84
2 changed files with 4 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ if(WITH_LIBMV)
endif()
if(WITH_CYCLES)
add_definitions(-DWITH_CYCLES)
if(WITH_CYCLES_LOGGING)
list(APPEND INC ../../intern/cycles/blender)
add_definitions(-DWITH_CYCLES_LOGGING)

View File

@@ -643,13 +643,14 @@ static int arg_handle_print_help(int UNUSED(argc), const char **UNUSED(argv), vo
printf("Cycles Render Options:\n");
printf("\tCycles add-on options must be specified following a double dash.\n\n");
printf("``--cycles-device OPTIX``\n");
printf("\tSet the device used for rendering. Options: CPU, CUDA, OPTIX, HIP, ONEAPI, METAL.\n\n");
printf(
"\tSet the device used for rendering. Options: CPU, CUDA, OPTIX, HIP, ONEAPI, METAL.\n\n");
printf("\tAppend +CPU to a GPU device to render on both CPU and GPU.\n\n");
printf("\tExample:\n");
printf("\t# blender -b file.blend -f 20 -- --cycles-device OPTIX\n");
printf("``--cycles-print-stats``\n");
printf("\tLog statistics about render memory and time usage.\n");
# endif WITH_CYCLES
# endif /*WITH_CYCLES*/
// printf("\n");
// printf("Experimental Features:\n");