diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-27 16:54:03 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-02-27 16:54:03 (GMT) |
commit | e68b4b9bc72f2b43e94f6c048eb012e9cce0dfad (patch) | |
tree | f3abd2ac6722010d08c2b553c6b1d13be99d06bf /Modules | |
parent | 417e10a4a7114c113403907e711a95282aee6115 (diff) | |
download | CMake-e68b4b9bc72f2b43e94f6c048eb012e9cce0dfad.zip CMake-e68b4b9bc72f2b43e94f6c048eb012e9cce0dfad.tar.gz CMake-e68b4b9bc72f2b43e94f6c048eb012e9cce0dfad.tar.bz2 |
Use more condense buildname. If this works fine we can make cmBuildName command deprecated
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Dart.cmake | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake index b46fa41..c2459c8 100644 --- a/Modules/Dart.cmake +++ b/Modules/Dart.cmake @@ -77,7 +77,22 @@ IF(BUILD_TESTING) # set the site name SITE_NAME(SITE) # set the build name - BUILD_NAME(BUILDNAME) + IF(NOT BUILDNAME) + SET(DART_COMPILER "${CMAKE_CXX_COMPILER}") + IF(NOT DART_COMPILER) + SET(DART_COMPILER "${CMAKE_C_COMPILER}") + ENDIF(NOT DART_COMPILER) + 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) + GET_FILENAME_COMPONENT(DART_CXX_NAME "${CMAKE_CXX_COMPILER}" NAME) + ENDIF(WIN32) + SET(BUILDNAME "${CMAKE_SYSTEM_NAME}-${DART_CXX_NAME}") + ENDIF(NOT BUILDNAME) + #BUILD_NAME(BUILDNAME) # set the build command BUILD_COMMAND(MAKECOMMAND ${MAKEPROGRAM} ) |