From d2faa2273218761b2f65f4db327cb64c09b637ba Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 27 Feb 2003 14:48:33 -0500 Subject: [PATCH] On windows but not on borland, look at cmake_build_tool instead of compiler to determine build name. Otherwise they will all be cl --- Modules/Dart.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake index c2459c815..8a7a90c5e 100644 --- a/Modules/Dart.cmake +++ b/Modules/Dart.cmake @@ -85,11 +85,11 @@ IF(BUILD_TESTING) IF(NOT DART_COMPILER) SET(DART_COMPILER "unknown") ENDIF(NOT DART_COMPILER) - IF(WIN32) - GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_CXX_COMPILER}" NAME_WE) - ELSE(WIN32) + IF(UNIX OR BORLAND) GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_CXX_COMPILER}" NAME) - ENDIF(WIN32) + ELSE(UNIX OR BORLAND) + GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_BUILD_TOOL}" NAME_WE) + ENDIF(UNIX OR BORLAND) SET(BUILDNAME "${CMAKE_SYSTEM_NAME}-${DART_CXX_NAME}") ENDIF(NOT BUILDNAME) #BUILD_NAME(BUILDNAME) @@ -103,7 +103,6 @@ IF(BUILD_TESTING) BUILD_WARNING_REPORT_LIMIT BUILD_ERROR_REPORT_LIMIT SITE - BUILDNAME MAKECOMMAND JAVACOMMAND PURIFYCOMMAND @@ -115,6 +114,7 @@ IF(BUILD_TESTING) SCPCOMMAND DELIVER_CONTINUOUS_EMAIL ) + # BUILDNAME # # Section #2: