1- set ( thirdPartyLibs "" )
1+ set (thirdPartyLibs "" )
22
33################################
44# RAJA
55################################
6- if ( EXISTS ${RAJA_DIR} )
7- message (STATUS "Using system RAJA found at ${RAJA_DIR} " )
8- else ()
9- message (STATUS "Using RAJA from thirdPartyLibs" )
6+ if (NOT EXISTS ${RAJA_DIR} )
107 set (RAJA_DIR ${GEOSX_TPL_DIR} /raja)
118endif ()
129
13- include (${CMAKE_SOURCE_DIR} /cmake/FindRAJA.cmake)
14- if (NOT RAJA_FOUND)
15- message (FATAL_ERROR "RAJA not found in ${RAJA_DIR} . Maybe you need to build it" )
16- endif ()
17- blt_register_library( NAME RAJA
18- INCLUDES ${RAJA_INCLUDE_DIRS}
19- LIBRARIES ${RAJA_LIBRARY}
20- TREAT_INCLUDES_AS_SYSTEM ON )
10+ message (STATUS "Using RAJA from ${RAJA_DIR} " )
11+
12+ find_package (RAJA REQUIRED PATHS ${RAJA_DIR} )
2113
2214set (ENABLE_RAJA ON CACHE BOOL "" )
2315
24- set ( thirdPartyLibs ${thirdPartyLibs} raja )
16+ set (thirdPartyLibs ${thirdPartyLibs} RAJA )
2517
2618
2719###############################
@@ -45,7 +37,6 @@ endif()
4537################################
4638# CHAI
4739################################
48- # include(cmake/FindCHAI.cmake)
4940if (ENABLE_CHAI)
5041 if (NOT ENABLE_UMPIRE)
5142 message (FATAL_ERROR "umpire must be enabled to use chai." )
@@ -77,7 +68,7 @@ endif()
7768
7869
7970################################
80- # CALIPER and Adiak
71+ # CALIPER
8172################################
8273if (ENABLE_CALIPER)
8374 if (NOT EXISTS ${CALIPER_DIR} )
@@ -101,9 +92,9 @@ if(ENABLE_CALIPER)
10192 TREAT_INCLUDES_AS_SYSTEM ON )
10293
10394 set (thirdPartyLibs ${thirdPartyLibs} caliper)
95+ else ()
96+ message (STATUS "Not using caliper." )
10497endif ()
10598
10699
107-
108-
109- set ( thirdPartyLibs ${thirdPartyLibs} CACHE STRING "" )
100+ set (thirdPartyLibs ${thirdPartyLibs} CACHE STRING "" )
0 commit comments