summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-12-05 17:44:32 (GMT)
committerBrad King <brad.king@kitware.com>2013-12-05 17:52:11 (GMT)
commitef7c11ee31b371bd07bc32991a671da757602213 (patch)
tree5e367a108d14fa19e4dd81d2f2bc82524c007e28 /Tests/ExportImport
parente4201248ce76be40c109b67e68a4e295d709e2dc (diff)
downloadCMake-ef7c11ee31b371bd07bc32991a671da757602213.zip
CMake-ef7c11ee31b371bd07bc32991a671da757602213.tar.gz
CMake-ef7c11ee31b371bd07bc32991a671da757602213.tar.bz2
Tests: Fix standalone build of tests with nested projects
Since commit fd6076d0 (Tests: Pass CMAKE_MAKE_PROGRAM instead of --build-makeprogram, 2013-11-15) the ExportImport, Fortran, and MacRuntimePath tests use the value of CMAKE_TEST_MAKEPROGRAM as the CMAKE_MAKE_PROGRAM for their nested projects configurations. Teach these tests to initialize CMAKE_TEST_MAKEPROGRAM when it is not provided, such as when building the tests manually.
Diffstat (limited to 'Tests/ExportImport')
-rw-r--r--Tests/ExportImport/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/ExportImport/CMakeLists.txt b/Tests/ExportImport/CMakeLists.txt
index 8be8d33..02a0371 100644
--- a/Tests/ExportImport/CMakeLists.txt
+++ b/Tests/ExportImport/CMakeLists.txt
@@ -1,5 +1,8 @@
cmake_minimum_required (VERSION 2.7.20090711)
project(ExportImport C CXX)
+if(NOT DEFINED CMAKE_TEST_MAKEPROGRAM AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
+ set(CMAKE_TEST_MAKEPROGRAM "${CMAKE_MAKE_PROGRAM}")
+endif()
# Wipe out the install tree to make sure the exporter works.
add_custom_command(