| 1 |
# @HEADER |
| 2 |
# ***************************************************************************** |
| 3 |
# TriBITS: Tribal Build, Integrate, and Test System |
| 4 |
# |
| 5 |
# Copyright 2013-2016 NTESS and the TriBITS contributors. |
| 6 |
# SPDX-License-Identifier: BSD-3-Clause |
| 7 |
# ***************************************************************************** |
| 8 |
# @HEADER |
| 9 |
|
| 10 |
|
| 11 |
include("${CMAKE_CURRENT_LIST_DIR}/../utils/MessageWrapper.cmake") |
| 12 |
|
| 13 |
|
| 14 |
# Set the TriBITS package name var if it has not already been set |
| 15 |
# |
| 16 |
macro(tribits_set_tribits_package_name) |
| 17 |
if ("${PACKAGE_NAME}" STREQUAL "") |
| 18 |
if (NOT "${PROJECT_NAME}" STREQUAL "") |
| 19 |
set(PACKAGE_NAME ${PROJECT_NAME}) |
| 20 |
else() |
| 21 |
message_wrapper(FATAL_ERROR "Error! Can't set default PACKAGE_NAME because" |
| 22 |
" PROJECT_NAME is not set!") |
| 23 |
endif() |
| 24 |
endif() |
| 25 |
endmacro() |