I am following Building Blender/GPU Binaries - Blender Developer Wiki to build Blender with GPU binaries which states:
Change the CMake configuration to enable building with OptiX and point to the OptiX installation directory
and links to Building Blender/Options - Blender Developer Wiki which states:
By default, the CMakeCache.txt configuration file will be in …/build_.
I can’t find the …/build_ directory, but I did find the CMakeCache.txt file in …/build_windows_x64_vc17_Release directory.
Is that it?
What I also noticed is that the …/build_windows_x64_vc17_Release directory is created after running make
the first time.
This is a problem for me because I like to delete the …/build_windows_x64_vc17_Release directory when I screw up very badly to get a fresh start. However then every time I want to build Blender with GPU binaries I have to compile Blender twice, once to create the …/build_windows_x64_vc17_Release directory and once after modifying CMakeCache.txt, which on my PC takes about an hour.
Is there a way to set Build options ,especially CMakeCache.txt, in the Blender git repository to avoid having to compile twice?