summaryrefslogtreecommitdiff
path: root/Modules/Dart.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-07-27 08:48:08 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-07-27 08:48:08 -0400
commit1ed700d91f59851a510c7a5fe3b55e141dd493fc (patch)
tree188f844a8b79ed7080e8c5ab2412a0e2b95280d3 /Modules/Dart.cmake
parentc8101e8e4706445b172a1a5ed0f2fd6960522a18 (diff)
downloadcmake-1ed700d91f59851a510c7a5fe3b55e141dd493fc.tar.gz
ENH: Allow project to overwrite CMAKE_SYSTEM_NAME part of default BUILDNAME
Diffstat (limited to 'Modules/Dart.cmake')
-rw-r--r--Modules/Dart.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/Dart.cmake b/Modules/Dart.cmake
index a31abec700..210555c68c 100644
--- a/Modules/Dart.cmake
+++ b/Modules/Dart.cmake
@@ -98,7 +98,9 @@ IF(BUILD_TESTING)
ELSE(WIN32)
SET(DART_NAME_COMPONENT "NAME")
ENDIF(WIN32)
- SET(BUILD_NAME_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
+ IF(NOT BUILD_NAME_SYSTEM_NAME)
+ SET(BUILD_NAME_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
+ ENDIF(NOT BUILD_NAME_SYSTEM_NAME)
IF(WIN32)
SET(BUILD_NAME_SYSTEM_NAME "Win32")
ENDIF(WIN32)
@@ -117,7 +119,7 @@ IF(BUILD_TESTING)
SET(DART_CXX_NAME "vs71")
ENDIF(CMAKE_GENERATOR MATCHES "^Visual Studio 7$")
ENDIF(DART_CXX_NAME MATCHES "devenv")
- SET(BUILDNAME "${CMAKE_SYSTEM_NAME}-${DART_CXX_NAME}")
+ SET(BUILDNAME "${BUILD_NAME_SYSTEM_NAME}-${DART_CXX_NAME}")
MESSAGE(STATUS "Using Buildname: ${BUILDNAME}")
ENDIF(NOT BUILDNAME)
# set the build command