Debian Codegraph @

cmake/tribits/core/installation/TribitsConfigInclude.cmake.in

raw
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 get_filename_component(_@PROJECT_NAME@_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
11 get_filename_component(_@PROJECT_NAME@_PREFIX "${_@PROJECT_NAME@_DIR}" PATH)
12 set(@PROJECT_NAME@_DIR "${_@PROJECT_NAME@_PREFIX}/lib/cmake/@PROJECT_NAME@")
13 message(WARNING "@[email protected] has moved. "
14 "It now exists at a location under the installation prefix where the "
15 "find_package command looks by default (<prefix>/lib/cmake/@PROJECT_NAME@). "
16 "This compatibility file exists at the old location (<prefix>/include) "
17 "to present this message and load the file from its new location."
18 "\n"
19 "The find_package() call that loaded this file did so because its "
20 "cached result variable, @PROJECT_NAME@_DIR, is set to\n"
21 " ${_@PROJECT_NAME@_DIR}\n"
22 "I'm locally setting @PROJECT_NAME@_DIR to\n"
23 " ${@PROJECT_NAME@_DIR}\n"
24 "and loading @[email protected] from its new location. "
25 "One may suppress this warning by setting the above value in the cache. "
26 "However, the application needs modification permanently fix the issue. "
27 "The find_package() call that loaded this file may have the form\n"
28 " find_package(@PROJECT_NAME@ REQUIRED PATHS \${@PROJECT_NAME@_PATH}/include)\n"
29 "Change it to the form\n"
30 " set(CMAKE_PREFIX_PATH \${@PROJECT_NAME@_PATH} \${CMAKE_PREFIX_PATH})\n"
31 " find_package(@PROJECT_NAME@ REQUIRED)\n"
32 "to find @[email protected] in its new location in future builds "
33 "while still honoring the @PROJECT_NAME@_PATH option for this application."
34 )
35 include(${@PROJECT_NAME@_DIR}/@[email protected])