From 6b8d0eca48e18394cb1075d3e7ace326a398742e Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 22 Jan 2019 08:30:41 +0100 Subject: coin_build/test_instructions.py: Remove environment variables impacting cmake Remove CC,CXX which might be set by some COIN setup scripts. Change-Id: I33d56dfeb54476edf591fc765a4a4c3c8fe746a6 Reviewed-by: Cristian Maureira-Fredes --- coin_build_instructions.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'coin_build_instructions.py') diff --git a/coin_build_instructions.py b/coin_build_instructions.py index db021470f..5c12415dd 100644 --- a/coin_build_instructions.py +++ b/coin_build_instructions.py @@ -128,6 +128,11 @@ def run_build_instructions(): if not acceptCITestConfiguration(CI_HOST_OS, CI_HOST_OS_VER, CI_TARGET_ARCH, CI_COMPILER): exit() + # Remove some environment variables that impact cmake + for env_var in ['CC', 'CXX']: + if os.environ.get(env_var): + del os.environ[env_var] + # Uses default python, hopefully we have python2 installed on all hosts # Skip building using Python 2 on Windows, because of different MSVC C runtimes (VS2008 vs VS2015+) if CI_HOST_OS != "Windows": -- cgit v1.2.3