1 if (CMAKE_VERSION VERSION_LESS
"3.9")
2 message(FATAL_ERROR
"Diy requires CMake 3.9+")
6 ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### 7 ####### Any changes to this file will be overwritten by the next CMake run #### 8 ####### The input file was diy-config.cmake.in ######## 10 get_filename_component(PACKAGE_PREFIX_DIR
"${CMAKE_CURRENT_LIST_DIR}/" ABSOLUTE)
13 set(${_var}
"${_file}")
14 if(NOT EXISTS
"${_file}")
15 message(FATAL_ERROR
"File or directory ${_file} referenced by variable ${_var} does not exist !")
20 foreach(comp ${${_NAME}_FIND_COMPONENTS})
21 if(NOT ${_NAME}_${comp}_FOUND)
22 if(${_NAME}_FIND_REQUIRED_${comp})
23 set(${_NAME}_FOUND FALSE)
29 #################################################################################### 36 include(
"${CMAKE_CURRENT_LIST_DIR}/diy-targets.cmake")
38 set(_diy_find_quietly)
39 if (${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
40 set(_diy_find_quietly QUIET)
44 find_package(Threads ${_diy_find_quietly})
45 if (NOT Threads_FOUND)
46 list(APPEND
"${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE" "Threads not found")
47 set(
"${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
52 find_package(spdlog ${_diy_find_quietly})
54 list(APPEND
"${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE" "SPDLOG not found")
55 set(
"${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
60 find_package(caliper ${_diy_find_quietly})
61 if (NOT caliper_FOUND)
62 list(APPEND
"${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE" "Caliper not found")
63 set(
"${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
65 target_include_directories(DIY::vtkmdiy INTERFACE $<INSTALL_INTERFACE:${caliper_INCLUDE_DIR}>)
70 find_package(MPI ${_diy_find_quietly})
72 list(APPEND
"${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE" "MPI not found")
73 set(
"${CMAKE_FIND_PACKAGE_NAME}_FOUND" 0)
77 if (NOT DEFINED
"${CMAKE_FIND_PACKAGE_NAME}_FOUND")
78 set(
"${CMAKE_FIND_PACKAGE_NAME}_FOUND" 1)
macro check_required_components(_NAME)
macro set_and_check(_var, _file)