Browse Source

Merge topic 'test-RunCMake-parallel-make'

703e7625 Tests: Protect RunCMake tests from MAKEFLAGS in environment (#15542)
Brad King 10 years ago
parent
commit
88c5ec72b0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Tests/RunCMake/RunCMake.cmake

+ 3 - 0
Tests/RunCMake/RunCMake.cmake

@@ -135,3 +135,6 @@ function(run_cmake_command test)
   set(RunCMake_TEST_COMMAND "${ARGN}")
   run_cmake(${test})
 endfunction()
+
+# Protect RunCMake tests from calling environment.
+unset(ENV{MAKEFLAGS})