Nvrtc include pathes

Does the second machine have an OptiX SDK and a CUDA Toolkit installed, because if not, you do not have the required headers for OptiX device code runtime compilation at all.

If runtime compilation is actually not required, you can disable the NVRTC usage inside the CMake build and use NVCC to compile all OptiX device *.cu source to *.ptx (or OptiX IR when you’re using OptiX SDK 7.5.0 and CUDA 11.7) and put that into a relative folder and load from there and not use sutil for that at all.

If you want to see which search paths are used during the NVRTC compilation, you could simply debug into the sutil functions getInputData and the getCuStringFromFile and getPtxFromCuString in there which do the compilation with NVRTC.
If you also search for SAMPLES_DIR and getEnv inside the sutil code, you’ll find where it builds the search paths.

Inside getPtxFromCuString look at what is added as include "-I" paths to the nvrtc options.
That code will obviously know the OptiX include directory because that assumes it’s working inside the OptiX SDK folder structure itself.

Especially these are your paths which get set by the top-most CMakeLists.txt.
You could have also searched for NVRTC in all files of the OptiX SDK 7.x.0

    const char*              abs_dirs[] = {SAMPLES_ABSOLUTE_INCLUDE_DIRS};
    const char*              rel_dirs[] = {SAMPLES_RELATIVE_INCLUDE_DIRS};

All that said, I would not recommend using that part of the OptiX SDK example framework for own applications simply because of those hardcoded sample directory paths inside the executables.
That would need to be set dynamically if the application should do runtime compilation on any target machine with the OptiX SDK and CUDA Toolkit possibly installed in non-default locations.
Well, at least the CUDA Toolkit installer sets a CUDA_PATH environment variable. I do that for OptiX SDK versions manually.

Please read this post from an older OptiX version for possible solutions:
https://forums.developer.nvidia.com/t/sdk-samples-sutil-getptxstring-file-path/70963/2

For an OptiX application framework which is not using sutil and only the OptiX 7 headers, have a look at these examples: https://forums.developer.nvidia.com/t/optix-advanced-samples-on-github/48410/7
(Not using NVRTC though. but that would be simple to add where the readData calls are done to create the OptixModule objects.)