summaryrefslogtreecommitdiffstats
path: root/Modules/Dart.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-03-06 20:32:40 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-03-06 20:32:40 (GMT)
commit2c676d05878ef7cc9fba06800c0d55996b76dd0a (patch)
treec7d8583c6f24c63682d90069ebaee5765caf07ab /Modules/Dart.cmake
parent3a99c693c189940addb0c91da5bfc64189df838d (diff)
downloadCMake-2c676d05878ef7cc9fba06800c0d55996b76dd0a.zip
CMake-2c676d05878ef7cc9fba06800c0d55996b76dd0a.tar.gz
CMake-2c676d05878ef7cc9fba06800c0d55996b76dd0a.tar.bz2
On borland and cygwin remove .EXE
Diffstat (limited to 'Modules/Dart.cmake')
-rw-r--r--Modules/Dart.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake
index 0be80d6..d829184 100644
--- a/Modules/Dart.cmake
+++ b/Modules/Dart.cmake
@@ -89,14 +89,19 @@ IF(BUILD_TESTING)
IF(NOT DART_COMPILER)
SET(DART_COMPILER "unknown")
ENDIF(NOT DART_COMPILER)
+ IF(WIN32)
+ SET(DART_NAME_COMPONENT "NAME_WE")
+ ELSE(WIN32)
+ SET(DART_NAME_COMPONENT "NAME")
+ ENDIF(WIN32)
IF(UNIX OR BORLAND)
- GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_CXX_COMPILER}" NAME)
+ GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_CXX_COMPILER}" ${DART_NAME_COMPONENT})
ELSE(UNIX OR BORLAND)
- GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_BUILD_TOOL}" NAME_WE)
+ GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_BUILD_TOOL}" ${DART_NAME_COMPONENT})
ENDIF(UNIX OR BORLAND)
SET(BUILDNAME "${CMAKE_SYSTEM_NAME}-${DART_CXX_NAME}")
+ MESSAGE(STATUS "Using Buildname: ${BUILDNAME}")
ENDIF(NOT BUILDNAME)
- #BUILD_NAME(BUILDNAME)
# set the build command
BUILD_COMMAND(MAKECOMMAND ${MAKEPROGRAM} )