CTest: Properly set buildname if only C langage is enabled
Fixes #14068
This commit is contained in:
parent
cd1f1cb544
commit
6509ad29f6
|
@ -224,16 +224,16 @@ if(BUILD_TESTING)
|
||||||
set(BUILD_NAME_SYSTEM_NAME "Win32")
|
set(BUILD_NAME_SYSTEM_NAME "Win32")
|
||||||
endif()
|
endif()
|
||||||
if(UNIX OR BORLAND)
|
if(UNIX OR BORLAND)
|
||||||
get_filename_component(DART_CXX_NAME
|
get_filename_component(DART_COMPILER_NAME
|
||||||
"${CMAKE_CXX_COMPILER}" ${DART_NAME_COMPONENT})
|
"${DART_COMPILER}" ${DART_NAME_COMPONENT})
|
||||||
else()
|
else()
|
||||||
get_filename_component(DART_CXX_NAME
|
get_filename_component(DART_COMPILER_NAME
|
||||||
"${CMAKE_MAKE_PROGRAM}" ${DART_NAME_COMPONENT})
|
"${CMAKE_MAKE_PROGRAM}" ${DART_NAME_COMPONENT})
|
||||||
endif()
|
endif()
|
||||||
if(DART_CXX_NAME MATCHES "devenv")
|
if(DART_COMPILER_NAME MATCHES "devenv")
|
||||||
GET_VS_VERSION_STRING("${CMAKE_GENERATOR}" DART_CXX_NAME)
|
GET_VS_VERSION_STRING("${CMAKE_GENERATOR}" DART_COMPILER_NAME)
|
||||||
endif()
|
endif()
|
||||||
set(BUILDNAME "${BUILD_NAME_SYSTEM_NAME}-${DART_CXX_NAME}")
|
set(BUILDNAME "${BUILD_NAME_SYSTEM_NAME}-${DART_COMPILER_NAME}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# the build command
|
# the build command
|
||||||
|
|
Loading…
Reference in New Issue