Skip to content

Commit

Permalink
SEACAS: Remove usage of deprecated include_directories() (TriBITSPub/…
Browse files Browse the repository at this point in the history
…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.

This matches a similar commit from PR trilinos/Trilinos#11380

I was not able to use git format-patch and git am to apply the patch from the
Trilinos branch due to no current clean snapshot so I had to run the tool
TriBITS/refactoring/replace_include_directories_r.sh from scratch.
  • Loading branch information
bartlettroscoe committed Dec 21, 2022
1 parent 6a6702b commit c28616f
Show file tree
Hide file tree
Showing 64 changed files with 69 additions and 69 deletions.
2 changes: 1 addition & 1 deletion packages/seacas/applications/algebra/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Algebra)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/aprepro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

TRIBITS_SUBPACKAGE(Aprepro)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/blot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Blot)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/conjoin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

TRIBITS_SUBPACKAGE(Conjoin)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/cpup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

TRIBITS_SUBPACKAGE(Cpup)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/ejoin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

TRIBITS_SUBPACKAGE(Ejoin)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/epu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

TRIBITS_SUBPACKAGE(Epu)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/ex1ex2v2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Ex1ex2v2)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/ex2ex1v2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Ex2ex1v2)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/exo2mat/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ IF (TPL_ENABLE_Matio)
TRIBITS_SUBPACKAGE(Exo2mat)

LINK_DIRECTORIES(${Matio_LIBRARY_DIRS})
INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${Matio_INCLUDE_DIRS}"
"${CMAKE_CURRENT_SOURCE_DIR}"
)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/exo_format/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

TRIBITS_SUBPACKAGE(Exo_format)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/exodiff/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

TRIBITS_SUBPACKAGE(Exodiff)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/exomatlab/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

TRIBITS_SUBPACKAGE(Exomatlab)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/exotec2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TRIBITS_SUBPACKAGE(Exotec2)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/exotxt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Exotxt)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/explore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif()

TRIBITS_SUBPACKAGE(Explore)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/fastq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Fastq)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/gen3d/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Gen3D)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/genshell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Genshell)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/gjoin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Gjoin)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/grepos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Grepos)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/mapvar-kd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Mapvar-kd)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/mapvar/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Mapvar)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/mat2exo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ IF (TPL_ENABLE_Matio)
TRIBITS_SUBPACKAGE(Mat2exo)

LINK_DIRECTORIES(${Matio_LIBRARY_DIRS})
INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${Matio_INCLUDE_DIRS}"
"${CMAKE_CURRENT_SOURCE_DIR}"
)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/nas2exo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

TRIBITS_SUBPACKAGE(Nas2exo)

INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}")
TRIBITS_INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}")


SET(HEADERS "")
Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/applications/nem_slice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ TRIBITS_SUBPACKAGE(Nemslice)

ASSERT_DEFINED(${PROJECT_NAME}_ENABLE_Zoltan)
IF (${PROJECT_NAME}_ENABLE_Zoltan)
INCLUDE_DIRECTORIES(${Zoltan_INCLUDE_DIRS})
TRIBITS_INCLUDE_DIRECTORIES(${Zoltan_INCLUDE_DIRS})
SET(ZOLTAN_DEP zoltan)
ADD_DEFINITIONS(-DUSE_ZOLTAN)
ENDIF()

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(HEADERS "")
APPEND_GLOB(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.C)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/nem_spread/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

TRIBITS_SUBPACKAGE(Nemspread)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/numbers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Numbers)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/slice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ IF (TPL_ENABLE_METIS)
ADD_DEFINITIONS(-DUSE_METIS)
ENDIF()

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(HEADERS "")
APPEND_GLOB(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.C)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/txtexo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ INCLUDE(FortranSettings)

TRIBITS_SUBPACKAGE(Txtexo)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/applications/zellij/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ TRIBITS_SUBPACKAGE(Zellij)

ASSERT_DEFINED(${PROJECT_NAME}_ENABLE_Zoltan)
IF (${PROJECT_NAME}_ENABLE_Zoltan)
INCLUDE_DIRECTORIES(${Zoltan_INCLUDE_DIRS})
TRIBITS_INCLUDE_DIRECTORIES(${Zoltan_INCLUDE_DIRS})
SET(ZOLTAN_DEP zoltan)
ADD_DEFINITIONS(-DUSE_ZOLTAN)
ENDIF()

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/aprepro_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ IF (${CMAKE_PROJECT_NAME}_ENABLE_SEACASExodus)
ADD_DEFINITIONS(-DEXODUS_SUPPORT)
ENDIF()

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/chaco/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SET(CHACO_VERSION_PATCH "0")
SET(CHACO_VERSION "${CHACO_VERSION_MAJOR}.${CHACO_VERSION_MINOR}")
SET(CHACO_VERSION_FULL "${CHACO_VERSION}.${CHACO_VERSION_PATCH}")

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/main"
"${CMAKE_CURRENT_SOURCE_DIR}/util"
)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/exoIIv2for32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TRIBITS_SUBPACKAGE(ExoIIv2for32)

add_definitions(-DDEFAULT_REAL_INT)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/../exodus_for/include"
"${CMAKE_CURRENT_SOURCE_DIR}/test"
)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/exodus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (SEACASExodus_ENABLE_STATIC)
INCLUDE(InstallSymLink)
endif()

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/include"
)

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/exodus_for/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif()

TRIBITS_SUBPACKAGE(Exodus_for)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/test"
)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/ioss/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ IF (NOT TPL_ENABLE_MPI)
LIST(REMOVE_ITEM HEADERS ${DIR}/Ioss_Decomposition.h)
ENDIF()

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_BINARY_DIR}"
"${Zoltan_INCLUDE_DIRS}"
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/ioss/src/adios/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SET_AND_INC_DIRS(DIR ${CMAKE_CURRENT_SOURCE_DIR})
APPEND_GLOB(HEADERS ${DIR}/*.h*)
APPEND_GLOB(SOURCES ${DIR}/*.C)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/../"
"${CMAKE_CURRENT_BINARY_DIR}/../"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ TRIBITS_ADD_TEST(
NUM_MPI_PROCS 1
)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/../"
"${CMAKE_CURRENT_BINARY_DIR}/../"
"${CMAKE_CURRENT_SOURCE_DIR}/../../"
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/ioss/src/catalyst/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SET_AND_INC_DIRS(DIR ${CMAKE_CURRENT_SOURCE_DIR})
APPEND_GLOB(HEADERS ${DIR}/*.h*)
APPEND_GLOB(SOURCES ${DIR}/*.C)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/../"
"${CMAKE_CURRENT_BINARY_DIR}/../"
)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/ioss/src/cgns/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ IF (NOT TPL_ENABLE_MPI)
LIST(REMOVE_ITEM HEADERS ${DIR}/Iocgns_ParallelDatabaseIO.h ${DIR}/Iocgns_DecompositionData.h)
ENDIF()

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/../"
"${CMAKE_CURRENT_BINARY_DIR}/../"
)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/ioss/src/exodus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SET_AND_INC_DIRS(DIR ${CMAKE_CURRENT_SOURCE_DIR})
APPEND_GLOB(HEADERS ${DIR}/*.h)
APPEND_GLOB(SOURCES ${DIR}/*.C)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/../"
"${CMAKE_CURRENT_BINARY_DIR}/../"
)
Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/libraries/ioss/src/faodel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SET_AND_INC_DIRS(DIR ${CMAKE_CURRENT_SOURCE_DIR})
APPEND_GLOB(HEADERS ${DIR}/*.h)
APPEND_GLOB(SOURCES ${DIR}/*.C)

INCLUDE_DIRECTORIES(
TRIBITS_INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}/../"
"${CMAKE_CURRENT_BINARY_DIR}/../"
${Boost_INCLUDE_DIR}
Expand Down
Loading

0 comments on commit c28616f

Please sign in to comment.