message(WARNING "Found CUDA but PBRT_OPTIX7_PATH is not set. Disabling GPU compilation.")
elseif(CMAKE_SYSTEM_NAME STREQUAL Windows)
message(FATAL_ERROR "pbrt on the GPU is not currently supported on Windows--sorry! It has worked in the past, but is now buggy. It will be necessary for someone to debug the current issues and send a PR for it to be re-enabled (we don't currently have the bandwidth to do so).")