|
|
@@ -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} )
|
|
|
|