comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/cmake/zstd/zstdConfig.cmake @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
comparison
equal deleted inserted replaced
67:0e9998148a16 68:5028fdace37b
1
2 ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
3 ####### Any changes to this file will be overwritten by the next CMake run ####
4 ####### The input file was zstdConfig.cmake.in ########
5
6 get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
7
8 macro(set_and_check _var _file)
9 set(${_var} "${_file}")
10 if(NOT EXISTS "${_file}")
11 message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
12 endif()
13 endmacro()
14
15 macro(check_required_components _NAME)
16 foreach(comp ${${_NAME}_FIND_COMPONENTS})
17 if(NOT ${_NAME}_${comp}_FOUND)
18 if(${_NAME}_FIND_REQUIRED_${comp})
19 set(${_NAME}_FOUND FALSE)
20 endif()
21 endif()
22 endforeach()
23 endmacro()
24
25 ####################################################################################
26
27 include(CMakeFindDependencyMacro)
28 if(ON AND "1")
29 find_dependency(Threads)
30 endif()
31
32 include("${CMAKE_CURRENT_LIST_DIR}/zstdTargets.cmake")
33
34 check_required_components("zstd")