Seems CMake is not happy about changing compiler from script.
message(FATAL_ERROR "Unknown build environment")
endif()
-# Use backported version of the compiler instead of a system default one
-set(CMAKE_C_COMPILER "/usr/bin/gcc-6" CACHE STRING "" FORCE)
-set(CMAKE_CXX_COMPILER "/usr/bin/g++-6" CACHE STRING "" FORCE)
-
# Default to only build Blender, not the player
set(WITH_BLENDER ON CACHE BOOL "" FORCE)
set(WITH_PLAYER OFF CACHE BOOL "" FORCE)
chroot_name = 'buildbot_' + deb_name + '_i686'
cuda_chroot_name = 'buildbot_' + deb_name + '_x86_64'
targets = ['player', 'blender', 'cuda']
+ cmake_extra_options.extend(["-DCMAKE_C_COMPILER=/usr/bin/gcc-6",
+ "-DCMAKE_CXX_COMPILER=/usr/bin/g++-6"])
cmake_options.append("-C" + os.path.join(blender_dir, cmake_config_file))