Skip to content

Commit 148c87f

Browse files
committed
Simplified TPL CMake logic.
1 parent 929fe1a commit 148c87f

File tree

4 files changed

+20
-27
lines changed

4 files changed

+20
-27
lines changed

cmake/CMakeBasics.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ endif()
1010
option( ENABLE_TOTALVIEW_OUTPUT "" OFF )
1111

1212

13-
if( ( NOT BLT_CXX_STD STREQUAL c++14 ) AND (NOT BLT_CXX_STD STREQUAL c++11))
14-
MESSAGE(FATAL_ERROR "c++11/14 is NOT enabled. LvArray requires c++11/14")
13+
if( NOT BLT_CXX_STD STREQUAL c++14 )
14+
MESSAGE(FATAL_ERROR "c++14 is NOT enabled. LvArray requires c++14")
1515
endif()
1616

1717

cmake/Config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ foreach( DEP in ${PREPROCESSOR_DEFINES})
1212
endif()
1313
endforeach()
1414

15-
if( USE_ADDR2LINE )
15+
if( ENABLE_ADDR2LINE )
1616
if ( NOT DEFINED ADDR2LINE_EXEC )
1717
set( ADDR2LINE_EXEC /usr/bin/addr2line CACHE PATH "" )
1818
endif()

cmake/SetupTPL.cmake

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(thirdPartyLibs "")
44
# RAJA
55
################################
66
if(NOT EXISTS ${RAJA_DIR})
7-
set(RAJA_DIR ${GEOSX_TPL_DIR}/raja)
7+
message(FATAL_ERROR "RAJA_DIR must be defined and point to a valid directory when using RAJA.")
88
endif()
99

1010
message(STATUS "Using RAJA from ${RAJA_DIR}")
@@ -21,39 +21,39 @@ set(thirdPartyLibs ${thirdPartyLibs} RAJA)
2121
###############################
2222
if(ENABLE_UMPIRE)
2323
if(NOT EXISTS ${UMPIRE_DIR})
24-
set(UMPIRE_DIR ${GEOSX_TPL_DIR}/chai)
24+
message(FATAL_ERROR "UMPIRE_DIR must be defined and point to a valid directory when using Umpire.")
2525
endif()
2626

27-
message(STATUS "Using umpire at ${UMPIRE_DIR}")
27+
message(STATUS "Using Umpire from ${UMPIRE_DIR}")
2828

2929
find_package(umpire REQUIRED
30-
PATHS ${UMPIRE_DIR}/share/umpire/cmake/)
30+
PATHS ${UMPIRE_DIR})
3131

3232
set(thirdPartyLibs ${thirdPartyLibs} umpire)
3333
else()
34-
message(STATUS "Not using umpire.")
34+
message(STATUS "Not using Umpire.")
3535
endif()
3636

3737
################################
3838
# CHAI
3939
################################
4040
if(ENABLE_CHAI)
4141
if(NOT ENABLE_UMPIRE)
42-
message(FATAL_ERROR "umpire must be enabled to use chai.")
42+
message(FATAL_ERROR "Umpire must be enabled to use CHAI.")
4343
endif()
4444

4545
if(NOT ENABLE_RAJA)
46-
message(FATAL_ERROR "RAJA must be enabled to use chai.")
46+
message(FATAL_ERROR "RAJA must be enabled to use CHAI.")
4747
endif()
4848

4949
if(NOT EXISTS ${CHAI_DIR})
50-
set(CHAI_DIR ${GEOSX_TPL_DIR}/chai)
50+
message(FATAL_ERROR "CHAI_DIR must be defined and point to a valid directory when using CHAI.")
5151
endif()
5252

53-
message(STATUS "Using chai at ${CHAI_DIR}")
53+
message(STATUS "Using CHAI from ${CHAI_DIR}")
5454

5555
find_package(chai REQUIRED
56-
PATHS ${CHAI_DIR}/share/chai/cmake/)
56+
PATHS ${CHAI_DIR})
5757

5858
# If this isn't done chai will add -lRAJA to the link line, but we don't link to RAJA like that.
5959
get_target_property(CHAI_LINK_LIBRARIES chai INTERFACE_LINK_LIBRARIES)
@@ -63,7 +63,7 @@ if(ENABLE_CHAI)
6363

6464
set(thirdPartyLibs ${thirdPartyLibs} chai)
6565
else()
66-
message(STATUS "Not using chai.")
66+
message(STATUS "Not using CHAI.")
6767
endif()
6868

6969

@@ -72,29 +72,22 @@ endif()
7272
################################
7373
if(ENABLE_CALIPER)
7474
if(NOT EXISTS ${CALIPER_DIR})
75-
set(CALIPER_DIR ${GEOSX_TPL_DIR}/caliper)
75+
message(FATAL_ERROR "CALIPER_DIR must be defined and point to a valid directory when using caliper.")
7676
endif()
7777

78-
message(STATUS "Using caliper at ${CALIPER_DIR}")
78+
message(STATUS "Using caliper from ${CALIPER_DIR}")
7979

8080
find_package(caliper REQUIRED
81-
PATHS ${CALIPER_DIR}/share/cmake/caliper)
82-
83-
if(ENABLE_MPI)
84-
set(caliper_LIBRARIES caliper-mpi)
85-
else()
86-
set(caliper_LIBRARIES caliper)
87-
endif()
81+
PATHS ${CALIPER_DIR})
8882

8983
blt_register_library(NAME caliper
9084
INCLUDES ${caliper_INCLUDE_PATH}
91-
LIBRARIES ${caliper_LIBRARIES}
85+
LIBRARIES caliper
9286
TREAT_INCLUDES_AS_SYSTEM ON)
9387

9488
set(thirdPartyLibs ${thirdPartyLibs} caliper)
9589
else()
9690
message(STATUS "Not using caliper.")
9791
endif()
9892

99-
10093
set(thirdPartyLibs ${thirdPartyLibs} CACHE STRING "")

docs/sphinx/ArrayOfSets.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
###############################################################################
2-
``Lvarray::ArrayOfSets``
2+
``LvArray::ArrayOfSets``
33
###############################################################################
44

5-
The ``LvArray::ArrayOfSets`` is very siilar to the ``LvArray::ArrayOfArrays`` except that the values of the inner arrays are sorted an unique like the ``LvArray::SortedArray``. If you are familiar with both of these classes the functionality of the ``LvArray::ArrayOfSets`` should be pretty straightforward.
5+
The ``LvArray::ArrayOfSets`` is very similar to the ``LvArray::ArrayOfArrays`` except that the values of the inner arrays are sorted an unique like the ``LvArray::SortedArray``. If you are familiar with both of these classes the functionality of the ``LvArray::ArrayOfSets`` should be pretty straightforward.
66

77
Template arguments
88
------------------

0 commit comments

Comments
 (0)