Skip to content

Commit 7fc7624

Browse files
committed
Tests: Move CMAKE_TEST_MAKEPROGRAM into Tests/CMakeLists.txt
Also drop the temporary MAKEPROGRAM variable and the DART_ROOT special case. We never run dashboard clients with Dart anymore.
1 parent 0a7f17b commit 7fc7624

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CMakeLists.txt

-5
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ endif()
113113
# for testing. Simply to improve readability of the main script.
114114
#-----------------------------------------------------------------------
115115
macro(CMAKE_SETUP_TESTING)
116-
if (NOT DART_ROOT)
117-
set(MAKEPROGRAM ${CMAKE_MAKE_PROGRAM})
118-
endif ()
119-
120116
if(BUILD_TESTING)
121117
set(CMAKE_TEST_GENERATOR "" CACHE STRING
122118
"Generator used when running tests")
@@ -125,7 +121,6 @@ macro(CMAKE_SETUP_TESTING)
125121
if(NOT CMAKE_TEST_GENERATOR)
126122
set(CMAKE_TEST_GENERATOR "${CMAKE_GENERATOR}")
127123
set(CMAKE_TEST_GENERATOR_TOOLSET "${CMAKE_GENERATOR_TOOLSET}")
128-
set(CMAKE_TEST_MAKEPROGRAM "${MAKEPROGRAM}")
129124
else()
130125
set(CMAKE_TEST_DIFFERENT_GENERATOR TRUE)
131126
set(CMAKE_TEST_GENERATOR_TOOLSET "")

Tests/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ configure_file(${CMake_SOURCE_DIR}/Tests/EnforceConfig.cmake.in
4343

4444
# Testing
4545
if(BUILD_TESTING)
46+
if(NOT CMAKE_TEST_DIFFERENT_GENERATOR)
47+
set(CMAKE_TEST_MAKEPROGRAM "${CMAKE_MAKE_PROGRAM}")
48+
endif()
49+
4650
if("${CMAKE_TEST_GENERATOR}" MATCHES "Unix Makefiles" OR ("${CMAKE_TEST_GENERATOR}" MATCHES Ninja AND NOT WIN32))
4751
set(TEST_CompileCommandOutput 1)
4852
endif()

0 commit comments

Comments
 (0)