From 0b933e6023667b1da9e94238e785765598f6b433 Mon Sep 17 00:00:00 2001 From: "Roscoe A. Bartlett" Date: Mon, 19 Dec 2022 14:31:15 -0700 Subject: [PATCH] Pike: Remove usage of deprecated include_directories() (TriBITSPub/TriBITS#429) The deprecated TriBITS macro include_directories() now issues a CMake Deprecation warning. The fix is to use tribits_include_directories() instead and use raw CMake include_directories() where that is the behavior you want. --- blackbox/test/core/CMakeLists.txt | 4 ++-- blackbox/test/models/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blackbox/test/core/CMakeLists.txt b/blackbox/test/core/CMakeLists.txt index 620d5cfbe7d..94a2cec4fd7 100644 --- a/blackbox/test/core/CMakeLists.txt +++ b/blackbox/test/core/CMakeLists.txt @@ -1,6 +1,6 @@ -INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) -INCLUDE_DIRECTORIES(REQUIRED_DURING_INSTALLATION_TESTING ${CMAKE_CURRENT_SOURCE_DIR}/../models) +TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) +TRIBITS_INCLUDE_DIRECTORIES(REQUIRED_DURING_INSTALLATION_TESTING ${CMAKE_CURRENT_SOURCE_DIR}/../models) SET(UNIT_TEST_DRIVER ${TEUCHOS_STD_UNIT_TEST_MAIN}) diff --git a/blackbox/test/models/CMakeLists.txt b/blackbox/test/models/CMakeLists.txt index 57770190899..90606ef3977 100644 --- a/blackbox/test/models/CMakeLists.txt +++ b/blackbox/test/models/CMakeLists.txt @@ -1,5 +1,5 @@ -INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) +TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) SET_AND_INC_DIRS(DIR ${CMAKE_CURRENT_SOURCE_DIR}) SET(HEADERS "") SET(NOINSTALLHEADERS "")