summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>2016-06-20 19:45:25 (GMT)
committerJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>2016-06-20 19:45:25 (GMT)
commit6509ad29f6efab56ce2dd3669ca0fbf798adbee2 (patch)
tree4dae27cb79f0b3574ed46e9471022ca02d50ad00 /Modules
parentcd1f1cb544267911829ac777214474f5ce3491f1 (diff)
downloadCMake-6509ad29f6efab56ce2dd3669ca0fbf798adbee2.zip
CMake-6509ad29f6efab56ce2dd3669ca0fbf798adbee2.tar.gz
CMake-6509ad29f6efab56ce2dd3669ca0fbf798adbee2.tar.bz2
CTest: Properly set buildname if only C langage is enabled
Fixes #14068
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CTest.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake
index a27eb4b..ce725c5 100644
--- a/Modules/CTest.cmake
+++ b/Modules/CTest.cmake
@@ -224,16 +224,16 @@ if(BUILD_TESTING)
set(BUILD_NAME_SYSTEM_NAME "Win32")
endif()
if(UNIX OR BORLAND)
- get_filename_component(DART_CXX_NAME
- "${CMAKE_CXX_COMPILER}" ${DART_NAME_COMPONENT})
+ get_filename_component(DART_COMPILER_NAME
+ "${DART_COMPILER}" ${DART_NAME_COMPONENT})
else()
- get_filename_component(DART_CXX_NAME
+ get_filename_component(DART_COMPILER_NAME
"${CMAKE_MAKE_PROGRAM}" ${DART_NAME_COMPONENT})
endif()
- if(DART_CXX_NAME MATCHES "devenv")
- GET_VS_VERSION_STRING("${CMAKE_GENERATOR}" DART_CXX_NAME)
+ if(DART_COMPILER_NAME MATCHES "devenv")
+ GET_VS_VERSION_STRING("${CMAKE_GENERATOR}" DART_COMPILER_NAME)
endif()
- set(BUILDNAME "${BUILD_NAME_SYSTEM_NAME}-${DART_CXX_NAME}")
+ set(BUILDNAME "${BUILD_NAME_SYSTEM_NAME}-${DART_COMPILER_NAME}")
endif()
# the build command