From 3cde5220749a437259c010f78d4a54e2807e77a2 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Thu, 4 Apr 2024 12:52:49 -0500 Subject: [PATCH] Disable in-source CMake builds on future RPM platforms --- ros_buildfarm/templates/release/rpm/mock_config.cfg.em | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ros_buildfarm/templates/release/rpm/mock_config.cfg.em b/ros_buildfarm/templates/release/rpm/mock_config.cfg.em index 4e577ad67..624ad6a49 100644 --- a/ros_buildfarm/templates/release/rpm/mock_config.cfg.em +++ b/ros_buildfarm/templates/release/rpm/mock_config.cfg.em @@ -22,10 +22,11 @@ config_opts['environment']['@env_key'] = '@env_val' config_opts['macros']['%_empty_manifest_terminate_build'] = '%{nil}' config_opts['macros']['%_missing_build_ids_terminate_build'] = '%{nil}' +@[if os_name in ['rhel'] and os_code_name in ['8', '9']]@ # Disable automatic out-of-source CMake builds config_opts['macros']['%__cmake_in_source_build'] = '1' config_opts['macros']['%__cmake3_in_source_build'] = '1' - +@[end if]@ # Required for running mock in Docker config_opts['use_nspawn'] = False