ZTWHHH commited on
Commit
e79d994
·
verified ·
1 Parent(s): c5fecc5

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/BasicConfigVersion-AnyNewerVersion.cmake.in +32 -0
  3. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/BasicConfigVersion-ExactVersion.cmake.in +72 -0
  4. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeASM_MARMASMInformation.cmake +25 -0
  5. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeASM_NASMInformation.cmake +66 -0
  6. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeBackwardCompatibilityC.cmake +76 -0
  7. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCCompiler.cmake.in +81 -0
  8. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCUDAInformation.cmake +155 -0
  9. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCXXCompilerABI.cpp +18 -0
  10. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCompilerCUDAArch.h +29 -0
  11. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDependentOption.cmake +92 -0
  12. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineASMCompiler.cmake +281 -0
  13. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineISPCCompiler.cmake +96 -0
  14. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineJavaCompiler.cmake +94 -0
  15. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindBinUtils.cmake +278 -0
  16. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindCodeBlocks.cmake +33 -0
  17. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindPackageMode.cmake +203 -0
  18. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindSublimeText2.cmake +23 -0
  19. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFortranCompilerId.F.in +279 -0
  20. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFortranInformation.cmake +135 -0
  21. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeHIPCompilerABI.hip +30 -0
  22. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeISPCCompilerId.ispc.in +62 -0
  23. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeMSYSFindMake.cmake +15 -0
  24. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeNMakeFindMake.cmake +7 -0
  25. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakePackageConfigHelpers.cmake +690 -0
  26. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeParseLibraryArchitecture.cmake +54 -0
  27. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakePrintHelpers.cmake +171 -0
  28. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeSystemSpecificInitialize.cmake +36 -0
  29. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestASM-ATTCompiler.cmake +13 -0
  30. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestASM_NASMCompiler.cmake +13 -0
  31. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestCXXCompiler.cmake +102 -0
  32. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestFortranCompiler.cmake +102 -0
  33. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CTestScriptMode.cmake +20 -0
  34. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CXX-DetectStdlib.h +10 -0
  35. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckFortranCompilerFlag.cmake +63 -0
  36. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckIPOSupported.cmake +265 -0
  37. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckIncludeFile.cmake +129 -0
  38. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckIncludeFile.cxx.in +6 -0
  39. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckLanguage.cmake +161 -0
  40. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckPrototypeDefinition.c.in +29 -0
  41. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckTypeSize.c.in +47 -0
  42. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/ExternalProject.cmake +0 -0
  43. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FetchContent.cmake +0 -0
  44. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindBoost.cmake +0 -0
  45. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindCURL.cmake +250 -0
  46. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindGDAL.cmake +204 -0
  47. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindKDE3.cmake +360 -0
  48. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindLAPACK.cmake +815 -0
  49. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindLua.cmake +243 -0
  50. falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindLua50.cmake +81 -0
.gitattributes CHANGED
@@ -1257,3 +1257,4 @@ evalkit_tf449/lib/python3.10/lib-dynload/_codecs_jp.cpython-310-x86_64-linux-gnu
1257
  infer_4_47_1/lib/python3.10/site-packages/triton/backends/nvidia/bin/ptxas filter=lfs diff=lfs merge=lfs -text
1258
  falcon/bin/x86_64-conda-linux-gnu-ld filter=lfs diff=lfs merge=lfs -text
1259
  falcon/lib/python3.10/tkinter/__pycache__/__init__.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
 
 
1257
  infer_4_47_1/lib/python3.10/site-packages/triton/backends/nvidia/bin/ptxas filter=lfs diff=lfs merge=lfs -text
1258
  falcon/bin/x86_64-conda-linux-gnu-ld filter=lfs diff=lfs merge=lfs -text
1259
  falcon/lib/python3.10/tkinter/__pycache__/__init__.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
1260
+ falcon/lib/python3.10/site-packages/huggingface_hub/inference/__pycache__/_client.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/BasicConfigVersion-AnyNewerVersion.cmake.in ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a basic version file for the Config-mode of find_package().
2
+ # It is used by write_basic_package_version_file() as input file for configure_file()
3
+ # to create a version-file which can be installed along a config.cmake file.
4
+ #
5
+ # The created file sets PACKAGE_VERSION_EXACT if the current version string and
6
+ # the requested version string are exactly the same and it sets
7
+ # PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
8
+ # The variable CVF_VERSION must be set before calling configure_file().
9
+
10
+ set(PACKAGE_VERSION "@CVF_VERSION@")
11
+
12
+ if (PACKAGE_FIND_VERSION_RANGE)
13
+ # Package version must be in the requested version range
14
+ if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN)
15
+ OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX)
16
+ OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX)))
17
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
18
+ else()
19
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
20
+ endif()
21
+ else()
22
+ if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
23
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
24
+ else()
25
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
26
+ if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
27
+ set(PACKAGE_VERSION_EXACT TRUE)
28
+ endif()
29
+ endif()
30
+ endif()
31
+
32
+ @CVF_ARCH_INDEPENDENT_CHECK@
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/BasicConfigVersion-ExactVersion.cmake.in ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a basic version file for the Config-mode of find_package().
2
+ # It is used by write_basic_package_version_file() as input file for configure_file()
3
+ # to create a version-file which can be installed along a config.cmake file.
4
+ #
5
+ # The created file sets PACKAGE_VERSION_EXACT if the current version string and
6
+ # the requested version string are exactly the same and it sets
7
+ # PACKAGE_VERSION_COMPATIBLE if the current version is equal to the requested version.
8
+ # The tweak version component is ignored.
9
+ # The variable CVF_VERSION must be set before calling configure_file().
10
+
11
+
12
+ if (PACKAGE_FIND_VERSION_RANGE)
13
+ message(AUTHOR_WARNING
14
+ "`find_package()` specify a version range but the version strategy "
15
+ "(ExactVersion) of the module `${PACKAGE_FIND_NAME}` is incompatible "
16
+ "with this request. Only the lower endpoint of the range will be used.")
17
+ endif()
18
+
19
+ set(PACKAGE_VERSION "@CVF_VERSION@")
20
+
21
+ if("@CVF_VERSION@" MATCHES "^([0-9]+)\\.([0-9]+)\\.([0-9]+)") # strip the tweak version
22
+ set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
23
+ set(CVF_VERSION_MINOR "${CMAKE_MATCH_2}")
24
+ set(CVF_VERSION_PATCH "${CMAKE_MATCH_3}")
25
+
26
+ if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
27
+ string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
28
+ endif()
29
+ if(NOT CVF_VERSION_MINOR VERSION_EQUAL 0)
30
+ string(REGEX REPLACE "^0+" "" CVF_VERSION_MINOR "${CVF_VERSION_MINOR}")
31
+ endif()
32
+ if(NOT CVF_VERSION_PATCH VERSION_EQUAL 0)
33
+ string(REGEX REPLACE "^0+" "" CVF_VERSION_PATCH "${CVF_VERSION_PATCH}")
34
+ endif()
35
+
36
+ set(CVF_VERSION_NO_TWEAK "${CVF_VERSION_MAJOR}.${CVF_VERSION_MINOR}.${CVF_VERSION_PATCH}")
37
+ else()
38
+ set(CVF_VERSION_NO_TWEAK "@CVF_VERSION@")
39
+ endif()
40
+
41
+ if(PACKAGE_FIND_VERSION MATCHES "^([0-9]+)\\.([0-9]+)\\.([0-9]+)") # strip the tweak version
42
+ set(REQUESTED_VERSION_MAJOR "${CMAKE_MATCH_1}")
43
+ set(REQUESTED_VERSION_MINOR "${CMAKE_MATCH_2}")
44
+ set(REQUESTED_VERSION_PATCH "${CMAKE_MATCH_3}")
45
+
46
+ if(NOT REQUESTED_VERSION_MAJOR VERSION_EQUAL 0)
47
+ string(REGEX REPLACE "^0+" "" REQUESTED_VERSION_MAJOR "${REQUESTED_VERSION_MAJOR}")
48
+ endif()
49
+ if(NOT REQUESTED_VERSION_MINOR VERSION_EQUAL 0)
50
+ string(REGEX REPLACE "^0+" "" REQUESTED_VERSION_MINOR "${REQUESTED_VERSION_MINOR}")
51
+ endif()
52
+ if(NOT REQUESTED_VERSION_PATCH VERSION_EQUAL 0)
53
+ string(REGEX REPLACE "^0+" "" REQUESTED_VERSION_PATCH "${REQUESTED_VERSION_PATCH}")
54
+ endif()
55
+
56
+ set(REQUESTED_VERSION_NO_TWEAK
57
+ "${REQUESTED_VERSION_MAJOR}.${REQUESTED_VERSION_MINOR}.${REQUESTED_VERSION_PATCH}")
58
+ else()
59
+ set(REQUESTED_VERSION_NO_TWEAK "${PACKAGE_FIND_VERSION}")
60
+ endif()
61
+
62
+ if(REQUESTED_VERSION_NO_TWEAK STREQUAL CVF_VERSION_NO_TWEAK)
63
+ set(PACKAGE_VERSION_COMPATIBLE TRUE)
64
+ else()
65
+ set(PACKAGE_VERSION_COMPATIBLE FALSE)
66
+ endif()
67
+
68
+ if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
69
+ set(PACKAGE_VERSION_EXACT TRUE)
70
+ endif()
71
+
72
+ @CVF_ARCH_INDEPENDENT_CHECK@
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeASM_MARMASMInformation.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # support for the MS ARM assembler, marmasm and marmasm64
6
+
7
+ set(ASM_DIALECT "_MARMASM")
8
+
9
+ set(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS asm)
10
+
11
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <INCLUDES> <FLAGS> -o <OBJECT> <SOURCE>")
12
+ set(CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY "<CMAKE_AR> <LINK_FLAGS> /out:<TARGET> <OBJECTS> ")
13
+
14
+ # The ASM_MARMASM compiler id for this compiler is "MSVC", so fill out the runtime library table.
15
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreaded "")
16
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDLL "")
17
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebug "")
18
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebugDLL "")
19
+
20
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OPTIONS_MSVC_DEBUG_INFORMATION_FORMAT_Embedded "-g")
21
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OPTIONS_MSVC_DEBUG_INFORMATION_FORMAT_ProgramDatabase "")
22
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OPTIONS_MSVC_DEBUG_INFORMATION_FORMAT_EditAndContinue "")
23
+
24
+ include(CMakeASMInformation)
25
+ set(ASM_DIALECT)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeASM_NASMInformation.cmake ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # support for the nasm assembler
6
+
7
+ set(CMAKE_ASM_NASM_SOURCE_FILE_EXTENSIONS nasm asm)
8
+
9
+ if(NOT CMAKE_ASM_NASM_OBJECT_FORMAT)
10
+ if(WIN32)
11
+ if(DEFINED CMAKE_C_SIZEOF_DATA_PTR AND CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
12
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT win64)
13
+ elseif(DEFINED CMAKE_CXX_SIZEOF_DATA_PTR AND CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)
14
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT win64)
15
+ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
16
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT win64)
17
+ else()
18
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT win32)
19
+ endif()
20
+ elseif(APPLE)
21
+ if(DEFINED CMAKE_C_SIZEOF_DATA_PTR AND CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
22
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT macho64)
23
+ elseif(DEFINED CMAKE_CXX_SIZEOF_DATA_PTR AND CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)
24
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT macho64)
25
+ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
26
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT macho64)
27
+ else()
28
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT macho)
29
+ endif()
30
+ else()
31
+ if(DEFINED CMAKE_C_SIZEOF_DATA_PTR AND CMAKE_C_SIZEOF_DATA_PTR EQUAL 8)
32
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT elf64)
33
+ elseif(DEFINED CMAKE_CXX_SIZEOF_DATA_PTR AND CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)
34
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT elf64)
35
+ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
36
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT elf64)
37
+ else()
38
+ set(CMAKE_ASM_NASM_OBJECT_FORMAT elf)
39
+ endif()
40
+ endif()
41
+ endif()
42
+
43
+ if(NOT CMAKE_ASM_NASM_COMPILE_OBJECT)
44
+ set(CMAKE_ASM_NASM_COMPILE_OBJECT "<CMAKE_ASM_NASM_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -f ${CMAKE_ASM_NASM_OBJECT_FORMAT} -o <OBJECT> <SOURCE>")
45
+ endif()
46
+
47
+ if(NOT CMAKE_ASM_NASM_LINK_EXECUTABLE)
48
+ set(CMAKE_ASM_NASM_LINK_EXECUTABLE
49
+ "<CMAKE_LINKER> <CMAKE_ASM_NASM_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
50
+ endif()
51
+
52
+ if(CMAKE_ASM_NASM_COMPILER_ID STREQUAL "NASM")
53
+ set(CMAKE_DEPFILE_FLAGS_ASM_NASM "-MD <DEP_FILE> -MT <DEP_TARGET>")
54
+
55
+ if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER)
56
+ AND CMAKE_GENERATOR MATCHES "Makefiles|WMake")
57
+ # dependencies are computed by the compiler itself
58
+ set(CMAKE_ASM_NASM_DEPFILE_FORMAT gcc)
59
+ set(CMAKE_ASM_NASM_DEPENDS_USE_COMPILER TRUE)
60
+ endif()
61
+ endif()
62
+
63
+ # Load the generic ASMInformation file:
64
+ set(ASM_DIALECT "_NASM")
65
+ include(CMakeASMInformation)
66
+ set(ASM_DIALECT)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeBackwardCompatibilityC.cmake ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ if(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
6
+ # Old CMake versions did not support OS X universal binaries anyway,
7
+ # so just get through this with at least some size for the types.
8
+ list(LENGTH CMAKE_OSX_ARCHITECTURES NUM_ARCHS)
9
+ if(${NUM_ARCHS} GREATER 1)
10
+ if(NOT DEFINED CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
11
+ message(WARNING "This module does not work with OS X universal binaries.")
12
+ set(__ERASE_CMAKE_TRY_COMPILE_OSX_ARCHITECTURES 1)
13
+ list(GET CMAKE_OSX_ARCHITECTURES 0 CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
14
+ endif()
15
+ endif()
16
+
17
+ include (CheckTypeSize)
18
+ CHECK_TYPE_SIZE(int CMAKE_SIZEOF_INT)
19
+ CHECK_TYPE_SIZE(long CMAKE_SIZEOF_LONG)
20
+ CHECK_TYPE_SIZE("void*" CMAKE_SIZEOF_VOID_P)
21
+ CHECK_TYPE_SIZE(char CMAKE_SIZEOF_CHAR)
22
+ CHECK_TYPE_SIZE(short CMAKE_SIZEOF_SHORT)
23
+ CHECK_TYPE_SIZE(float CMAKE_SIZEOF_FLOAT)
24
+ CHECK_TYPE_SIZE(double CMAKE_SIZEOF_DOUBLE)
25
+
26
+ include (CheckIncludeFile)
27
+ CHECK_INCLUDE_FILE("limits.h" CMAKE_HAVE_LIMITS_H)
28
+ CHECK_INCLUDE_FILE("unistd.h" CMAKE_HAVE_UNISTD_H)
29
+ CHECK_INCLUDE_FILE("pthread.h" CMAKE_HAVE_PTHREAD_H)
30
+
31
+ include (CheckIncludeFiles)
32
+ CHECK_INCLUDE_FILES("sys/types.h;sys/prctl.h" CMAKE_HAVE_SYS_PRCTL_H)
33
+
34
+ include (TestBigEndian)
35
+ TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)
36
+ include (FindX11)
37
+
38
+ if("${X11_X11_INCLUDE_PATH}" STREQUAL "/usr/include")
39
+ set (CMAKE_X_CFLAGS "" CACHE STRING "X11 extra flags.")
40
+ else()
41
+ set (CMAKE_X_CFLAGS "-I${X11_X11_INCLUDE_PATH}" CACHE STRING
42
+ "X11 extra flags.")
43
+ endif()
44
+ set (CMAKE_X_LIBS "${X11_LIBRARIES}" CACHE STRING
45
+ "Libraries and options used in X11 programs.")
46
+ set (CMAKE_HAS_X "${X11_FOUND}" CACHE INTERNAL "Is X11 around.")
47
+
48
+ include (FindThreads)
49
+
50
+ set (CMAKE_THREAD_LIBS "${CMAKE_THREAD_LIBS_INIT}" CACHE STRING
51
+ "Thread library used.")
52
+
53
+ set (CMAKE_USE_PTHREADS "${CMAKE_USE_PTHREADS_INIT}" CACHE BOOL
54
+ "Use the pthreads library.")
55
+
56
+ set (CMAKE_USE_WIN32_THREADS "${CMAKE_USE_WIN32_THREADS_INIT}" CACHE BOOL
57
+ "Use the win32 thread library.")
58
+
59
+ set (CMAKE_HP_PTHREADS ${CMAKE_HP_PTHREADS_INIT} CACHE BOOL
60
+ "Use HP pthreads.")
61
+
62
+ if(__ERASE_CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
63
+ set(CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
64
+ set(__ERASE_CMAKE_TRY_COMPILE_OSX_ARCHITECTURES)
65
+ endif()
66
+ endif()
67
+
68
+ mark_as_advanced(
69
+ CMAKE_HP_PTHREADS
70
+ CMAKE_THREAD_LIBS
71
+ CMAKE_USE_PTHREADS
72
+ CMAKE_USE_WIN32_THREADS
73
+ CMAKE_X_CFLAGS
74
+ CMAKE_X_LIBS
75
+ )
76
+
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCCompiler.cmake.in ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(CMAKE_C_COMPILER "@CMAKE_C_COMPILER@")
2
+ set(CMAKE_C_COMPILER_ARG1 "@CMAKE_C_COMPILER_ARG1@")
3
+ set(CMAKE_C_COMPILER_ID "@CMAKE_C_COMPILER_ID@")
4
+ set(CMAKE_C_COMPILER_VERSION "@CMAKE_C_COMPILER_VERSION@")
5
+ set(CMAKE_C_COMPILER_VERSION_INTERNAL "@CMAKE_C_COMPILER_VERSION_INTERNAL@")
6
+ set(CMAKE_C_COMPILER_WRAPPER "@CMAKE_C_COMPILER_WRAPPER@")
7
+ set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "@CMAKE_C_STANDARD_COMPUTED_DEFAULT@")
8
+ set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "@CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT@")
9
+ set(CMAKE_C_STANDARD_LATEST "@CMAKE_C_STANDARD_LATEST@")
10
+ set(CMAKE_C_COMPILE_FEATURES "@CMAKE_C_COMPILE_FEATURES@")
11
+ set(CMAKE_C90_COMPILE_FEATURES "@CMAKE_C90_COMPILE_FEATURES@")
12
+ set(CMAKE_C99_COMPILE_FEATURES "@CMAKE_C99_COMPILE_FEATURES@")
13
+ set(CMAKE_C11_COMPILE_FEATURES "@CMAKE_C11_COMPILE_FEATURES@")
14
+ set(CMAKE_C17_COMPILE_FEATURES "@CMAKE_C17_COMPILE_FEATURES@")
15
+ set(CMAKE_C23_COMPILE_FEATURES "@CMAKE_C23_COMPILE_FEATURES@")
16
+
17
+ set(CMAKE_C_PLATFORM_ID "@CMAKE_C_PLATFORM_ID@")
18
+ set(CMAKE_C_SIMULATE_ID "@CMAKE_C_SIMULATE_ID@")
19
+ set(CMAKE_C_COMPILER_FRONTEND_VARIANT "@CMAKE_C_COMPILER_FRONTEND_VARIANT@")
20
+ set(CMAKE_C_SIMULATE_VERSION "@CMAKE_C_SIMULATE_VERSION@")
21
+ @_SET_CMAKE_C_COMPILER_ARCHITECTURE_ID@
22
+ @_SET_CMAKE_C_COMPILER_SYSROOT@
23
+ @SET_MSVC_C_ARCHITECTURE_ID@
24
+ @SET_CMAKE_XCODE_ARCHS@
25
+ set(CMAKE_AR "@CMAKE_AR@")
26
+ set(CMAKE_C_COMPILER_AR "@CMAKE_C_COMPILER_AR@")
27
+ set(CMAKE_RANLIB "@CMAKE_RANLIB@")
28
+ set(CMAKE_C_COMPILER_RANLIB "@CMAKE_C_COMPILER_RANLIB@")
29
+ set(CMAKE_LINKER "@CMAKE_LINKER@")
30
+ set(CMAKE_LINKER_LINK "@CMAKE_LINKER_LINK@")
31
+ set(CMAKE_LINKER_LLD "@CMAKE_LINKER_LLD@")
32
+ set(CMAKE_C_COMPILER_LINKER "@CMAKE_C_COMPILER_LINKER@")
33
+ set(CMAKE_C_COMPILER_LINKER_ID "@CMAKE_C_COMPILER_LINKER_ID@")
34
+ set(CMAKE_C_COMPILER_LINKER_VERSION @CMAKE_C_COMPILER_LINKER_VERSION@)
35
+ set(CMAKE_C_COMPILER_LINKER_FRONTEND_VARIANT @CMAKE_C_COMPILER_LINKER_FRONTEND_VARIANT@)
36
+ set(CMAKE_MT "@CMAKE_MT@")
37
+ set(CMAKE_TAPI "@CMAKE_TAPI@")
38
+ set(CMAKE_COMPILER_IS_GNUCC @CMAKE_COMPILER_IS_GNUCC@)
39
+ set(CMAKE_C_COMPILER_LOADED 1)
40
+ set(CMAKE_C_COMPILER_WORKS @CMAKE_C_COMPILER_WORKS@)
41
+ set(CMAKE_C_ABI_COMPILED @CMAKE_C_ABI_COMPILED@)
42
+
43
+ set(CMAKE_C_COMPILER_ENV_VAR "CC")
44
+
45
+ set(CMAKE_C_COMPILER_ID_RUN 1)
46
+ set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
47
+ set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
48
+ set(CMAKE_C_LINKER_PREFERENCE 10)
49
+ set(CMAKE_C_LINKER_DEPFILE_SUPPORTED @CMAKE_C_LINKER_DEPFILE_SUPPORTED@)
50
+
51
+ # Save compiler ABI information.
52
+ set(CMAKE_C_SIZEOF_DATA_PTR "@CMAKE_C_SIZEOF_DATA_PTR@")
53
+ set(CMAKE_C_COMPILER_ABI "@CMAKE_C_COMPILER_ABI@")
54
+ set(CMAKE_C_BYTE_ORDER "@CMAKE_C_BYTE_ORDER@")
55
+ set(CMAKE_C_LIBRARY_ARCHITECTURE "@CMAKE_C_LIBRARY_ARCHITECTURE@")
56
+
57
+ if(CMAKE_C_SIZEOF_DATA_PTR)
58
+ set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
59
+ endif()
60
+
61
+ if(CMAKE_C_COMPILER_ABI)
62
+ set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
63
+ endif()
64
+
65
+ if(CMAKE_C_LIBRARY_ARCHITECTURE)
66
+ set(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_C_LIBRARY_ARCHITECTURE@")
67
+ endif()
68
+
69
+ set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "@CMAKE_C_CL_SHOWINCLUDES_PREFIX@")
70
+ if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
71
+ set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
72
+ endif()
73
+
74
+ @CMAKE_C_COMPILER_CUSTOM_CODE@
75
+ @CMAKE_C_SYSROOT_FLAG_CODE@
76
+ @CMAKE_C_OSX_DEPLOYMENT_TARGET_FLAG_CODE@
77
+
78
+ set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "@CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES@")
79
+ set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "@CMAKE_C_IMPLICIT_LINK_LIBRARIES@")
80
+ set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "@CMAKE_C_IMPLICIT_LINK_DIRECTORIES@")
81
+ set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@")
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCUDAInformation.cmake ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ if(UNIX)
5
+ set(CMAKE_CUDA_OUTPUT_EXTENSION .o)
6
+ else()
7
+ set(CMAKE_CUDA_OUTPUT_EXTENSION .obj)
8
+ endif()
9
+ set(CMAKE_INCLUDE_FLAG_CUDA "-I")
10
+
11
+ # Set implicit links early so compiler-specific modules can use them.
12
+ set(__IMPLICIT_LINKS)
13
+ foreach(dir ${CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES})
14
+ string(APPEND __IMPLICIT_LINKS " -L\"${dir}\"")
15
+ endforeach()
16
+ foreach(lib ${CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES})
17
+ if(${lib} MATCHES "/")
18
+ string(APPEND __IMPLICIT_LINKS " \"${lib}\"")
19
+ else()
20
+ string(APPEND __IMPLICIT_LINKS " -l${lib}")
21
+ endif()
22
+ endforeach()
23
+
24
+ # Load compiler-specific information.
25
+ if(CMAKE_CUDA_COMPILER_ID)
26
+ include(Compiler/${CMAKE_CUDA_COMPILER_ID}-CUDA OPTIONAL)
27
+ endif()
28
+
29
+ # load the system- and compiler specific files
30
+ if(CMAKE_CUDA_COMPILER_ID)
31
+ # load a hardware specific file, mostly useful for embedded compilers
32
+ if(CMAKE_SYSTEM_PROCESSOR)
33
+ include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_CUDA_COMPILER_ID}-CUDA-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL)
34
+ endif()
35
+ include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_CUDA_COMPILER_ID}-CUDA OPTIONAL)
36
+ endif()
37
+
38
+
39
+ # This should be included before the _INIT variables are
40
+ # used to initialize the cache. Since the rule variables
41
+ # have if blocks on them, users can still define them here.
42
+ # But, it should still be after the platform file so changes can
43
+ # be made to those values.
44
+
45
+ if(CMAKE_USER_MAKE_RULES_OVERRIDE)
46
+ # Save the full path of the file so try_compile can use it.
47
+ include(${CMAKE_USER_MAKE_RULES_OVERRIDE} RESULT_VARIABLE _override)
48
+ set(CMAKE_USER_MAKE_RULES_OVERRIDE "${_override}")
49
+ endif()
50
+
51
+ if(CMAKE_USER_MAKE_RULES_OVERRIDE_CUDA)
52
+ # Save the full path of the file so try_compile can use it.
53
+ include(${CMAKE_USER_MAKE_RULES_OVERRIDE_CUDA} RESULT_VARIABLE _override)
54
+ set(CMAKE_USER_MAKE_RULES_OVERRIDE_CUDA "${_override}")
55
+ endif()
56
+
57
+
58
+
59
+ # add the flags to the cache based
60
+ # on the initial values computed in the platform/*.cmake files
61
+ # use _INIT variables so that this only happens the first time
62
+ # and you can set these flags in the cmake cache
63
+ set(CMAKE_CUDA_FLAGS_INIT "$ENV{CUDAFLAGS} ${CMAKE_CUDA_FLAGS_INIT}")
64
+
65
+ cmake_initialize_per_config_variable(CMAKE_CUDA_FLAGS "Flags used by the CUDA compiler")
66
+
67
+ if(CMAKE_CUDA_STANDARD_LIBRARIES_INIT)
68
+ set(CMAKE_CUDA_STANDARD_LIBRARIES "${CMAKE_CUDA_STANDARD_LIBRARIES_INIT}"
69
+ CACHE STRING "Libraries linked by default with all CUDA applications.")
70
+ mark_as_advanced(CMAKE_CUDA_STANDARD_LIBRARIES)
71
+ endif()
72
+
73
+ if(NOT CMAKE_CUDA_COMPILER_LAUNCHER AND DEFINED ENV{CMAKE_CUDA_COMPILER_LAUNCHER})
74
+ set(CMAKE_CUDA_COMPILER_LAUNCHER "$ENV{CMAKE_CUDA_COMPILER_LAUNCHER}"
75
+ CACHE STRING "Compiler launcher for CUDA.")
76
+ endif()
77
+
78
+ include(CMakeCommonLanguageInclude)
79
+ _cmake_common_language_platform_flags(CUDA)
80
+
81
+ # now define the following rules:
82
+ # CMAKE_CUDA_CREATE_SHARED_LIBRARY
83
+ # CMAKE_CUDA_CREATE_SHARED_MODULE
84
+ # CMAKE_CUDA_COMPILE_WHOLE_COMPILATION
85
+ # CMAKE_CUDA_COMPILE_SEPARABLE_COMPILATION
86
+ # CMAKE_CUDA_LINK_EXECUTABLE
87
+
88
+ # create a shared library
89
+ if(NOT CMAKE_CUDA_CREATE_SHARED_LIBRARY)
90
+ set(CMAKE_CUDA_CREATE_SHARED_LIBRARY
91
+ "<CMAKE_CUDA_HOST_LINK_LAUNCHER> <CMAKE_SHARED_LIBRARY_CUDA_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CUDA_FLAGS> <SONAME_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>${__IMPLICIT_LINKS}")
92
+ endif()
93
+
94
+ # create a shared module copy the shared library rule by default
95
+ if(NOT CMAKE_CUDA_CREATE_SHARED_MODULE)
96
+ set(CMAKE_CUDA_CREATE_SHARED_MODULE ${CMAKE_CUDA_CREATE_SHARED_LIBRARY})
97
+ endif()
98
+
99
+ # Create a static archive incrementally for large object file counts.
100
+ if(NOT DEFINED CMAKE_CUDA_ARCHIVE_CREATE)
101
+ set(CMAKE_CUDA_ARCHIVE_CREATE "<CMAKE_AR> qc <TARGET> <LINK_FLAGS> <OBJECTS>")
102
+ endif()
103
+ if(NOT DEFINED CMAKE_CUDA_ARCHIVE_APPEND)
104
+ set(CMAKE_CUDA_ARCHIVE_APPEND "<CMAKE_AR> q <TARGET> <LINK_FLAGS> <OBJECTS>")
105
+ endif()
106
+ if(NOT DEFINED CMAKE_CUDA_ARCHIVE_FINISH)
107
+ set(CMAKE_CUDA_ARCHIVE_FINISH "<CMAKE_RANLIB> <TARGET>")
108
+ endif()
109
+
110
+ if(NOT CMAKE_CUDA_COMPILE_OBJECT)
111
+ set(CMAKE_CUDA_COMPILE_OBJECT
112
+ "<CMAKE_CUDA_COMPILER> ${_CMAKE_CUDA_EXTRA_FLAGS} <DEFINES> <INCLUDES> <FLAGS> ${_CMAKE_COMPILE_AS_CUDA_FLAG} <CUDA_COMPILE_MODE> <SOURCE> -o <OBJECT>")
113
+ endif()
114
+
115
+ # compile a cu file into an executable
116
+ if(NOT CMAKE_CUDA_LINK_EXECUTABLE)
117
+ set(CMAKE_CUDA_LINK_EXECUTABLE
118
+ "<CMAKE_CUDA_HOST_LINK_LAUNCHER> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>${__IMPLICIT_LINKS}")
119
+ endif()
120
+
121
+ # Add implicit host link directories that contain device libraries
122
+ # to the device link line.
123
+ set(__IMPLICIT_DLINK_DIRS ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})
124
+ if(__IMPLICIT_DLINK_DIRS)
125
+ list(REMOVE_ITEM __IMPLICIT_DLINK_DIRS ${CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES})
126
+ endif()
127
+ set(__IMPLICIT_DLINK_FLAGS)
128
+ foreach(dir ${__IMPLICIT_DLINK_DIRS})
129
+ if(EXISTS "${dir}/libcurand_static.a")
130
+ string(APPEND __IMPLICIT_DLINK_FLAGS " -L\"${dir}\"")
131
+ endif()
132
+ endforeach()
133
+ unset(__IMPLICIT_DLINK_DIRS)
134
+
135
+
136
+ #These are used when linking relocatable (dc) cuda code
137
+ if(NOT CMAKE_CUDA_DEVICE_LINK_LIBRARY)
138
+ set(CMAKE_CUDA_DEVICE_LINK_LIBRARY
139
+ "<CMAKE_CUDA_COMPILER> ${_CMAKE_CUDA_EXTRA_FLAGS} <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> ${CMAKE_CUDA_COMPILE_OPTIONS_PIC} ${_CMAKE_CUDA_EXTRA_DEVICE_LINK_FLAGS} -shared -dlink <OBJECTS> -o <TARGET> <LINK_LIBRARIES>${__IMPLICIT_DLINK_FLAGS}")
140
+ endif()
141
+ if(NOT CMAKE_CUDA_DEVICE_LINK_EXECUTABLE)
142
+ set(CMAKE_CUDA_DEVICE_LINK_EXECUTABLE
143
+ "<CMAKE_CUDA_COMPILER> ${_CMAKE_CUDA_EXTRA_FLAGS} <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> ${CMAKE_CUDA_COMPILE_OPTIONS_PIC} ${_CMAKE_CUDA_EXTRA_DEVICE_LINK_FLAGS} -shared -dlink <OBJECTS> -o <TARGET> <LINK_LIBRARIES>${__IMPLICIT_DLINK_FLAGS}")
144
+ endif()
145
+
146
+ # Used when device linking is handled by CMake.
147
+ if(NOT CMAKE_CUDA_DEVICE_LINK_COMPILE)
148
+ set(CMAKE_CUDA_DEVICE_LINK_COMPILE "<CMAKE_CUDA_COMPILER> ${_CMAKE_CUDA_EXTRA_FLAGS} <FLAGS> <LINK_FLAGS> -D__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__ -D__NV_EXTRA_INITIALIZATION=\"\" -D__NV_EXTRA_FINALIZATION=\"\" -DREGISTERLINKBINARYFILE=\\\"<REGISTER_FILE>\\\" -DFATBINFILE=\\\"<FATBINARY>\\\" ${_CMAKE_COMPILE_AS_CUDA_FLAG} -c \"${CMAKE_CUDA_COMPILER_TOOLKIT_LIBRARY_ROOT}/bin/crt/link.stub\" -o <OBJECT>")
149
+ endif()
150
+
151
+ unset(__IMPLICIT_DLINK_FLAGS)
152
+
153
+ set(CMAKE_CUDA_USE_LINKER_INFORMATION TRUE)
154
+
155
+ set(CMAKE_CUDA_INFORMATION_LOADED 1)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCXXCompilerABI.cpp ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef __cplusplus
2
+ # error "A C compiler has been selected for C++."
3
+ #endif
4
+
5
+ #include "CMakeCompilerABI.h"
6
+
7
+ int main(int argc, char* argv[])
8
+ {
9
+ int require = 0;
10
+ require += info_sizeof_dptr[argc];
11
+ require += info_byte_order_big_endian[argc];
12
+ require += info_byte_order_little_endian[argc];
13
+ #if defined(ABI_ID)
14
+ require += info_abi[argc];
15
+ #endif
16
+ (void)argv;
17
+ return require;
18
+ }
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCompilerCUDAArch.h ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #include <cstdio>
2
+
3
+ #include <cuda_runtime.h>
4
+
5
+ static bool cmakeCompilerCUDAArch()
6
+ {
7
+ int count = 0;
8
+ if (cudaGetDeviceCount(&count) != cudaSuccess || count == 0) {
9
+ std::fprintf(stderr, "No CUDA devices found.\n");
10
+ return -1;
11
+ }
12
+
13
+ bool found = false;
14
+ const char* sep = "";
15
+ for (int device = 0; device < count; ++device) {
16
+ cudaDeviceProp prop;
17
+ if (cudaGetDeviceProperties(&prop, device) == cudaSuccess) {
18
+ std::printf("%s%d%d", sep, prop.major, prop.minor);
19
+ sep = ";";
20
+ found = true;
21
+ }
22
+ }
23
+
24
+ if (!found) {
25
+ std::fprintf(stderr, "No CUDA architecture detected from any devices.\n");
26
+ }
27
+
28
+ return found;
29
+ }
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDependentOption.cmake ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ CMakeDependentOption
6
+ --------------------
7
+
8
+ Macro to provide an option dependent on other options.
9
+
10
+ This macro presents an option to the user only if a set of other
11
+ conditions are true.
12
+
13
+ .. command:: cmake_dependent_option
14
+
15
+ .. code-block:: cmake
16
+
17
+ cmake_dependent_option(<option> "<help_text>" <value> <depends> <force>)
18
+
19
+ Makes ``<option>`` available to the user if the
20
+ :ref:`semicolon-separated list <CMake Language Lists>` of conditions in
21
+ ``<depends>`` are all true. Otherwise, a local variable named ``<option>``
22
+ is set to ``<force>``.
23
+
24
+ When ``<option>`` is available, the given ``<help_text>`` and initial
25
+ ``<value>`` are used. Otherwise, any value set by the user is preserved for
26
+ when ``<depends>`` is satisfied in the future.
27
+
28
+ Note that the ``<option>`` variable only has a value which satisfies the
29
+ ``<depends>`` condition within the scope of the caller because it is a local
30
+ variable.
31
+
32
+ Example invocation:
33
+
34
+ .. code-block:: cmake
35
+
36
+ cmake_dependent_option(USE_FOO "Use Foo" ON "USE_BAR;NOT USE_ZOT" OFF)
37
+
38
+ If ``USE_BAR`` is true and ``USE_ZOT`` is false, this provides an option called
39
+ ``USE_FOO`` that defaults to ON. Otherwise, it sets ``USE_FOO`` to OFF and
40
+ hides the option from the user. If the status of ``USE_BAR`` or ``USE_ZOT``
41
+ ever changes, any value for the ``USE_FOO`` option is saved so that when the
42
+ option is re-enabled it retains its old value.
43
+
44
+ .. versionadded:: 3.22
45
+
46
+ Full :ref:`Condition Syntax` is now supported. See policy :policy:`CMP0127`.
47
+
48
+ #]=======================================================================]
49
+
50
+ macro(CMAKE_DEPENDENT_OPTION option doc default depends force)
51
+ cmake_policy(GET CMP0127 _CDO_CMP0127
52
+ PARENT_SCOPE # undocumented, do not use outside of CMake
53
+ )
54
+ if(${option}_ISSET MATCHES "^${option}_ISSET$")
55
+ set(${option}_AVAILABLE 1)
56
+ if("x${_CDO_CMP0127}x" STREQUAL "xNEWx")
57
+ foreach(d ${depends})
58
+ cmake_language(EVAL CODE "
59
+ if (${d})
60
+ else()
61
+ set(${option}_AVAILABLE 0)
62
+ endif()"
63
+ )
64
+ endforeach()
65
+ else()
66
+ foreach(d ${depends})
67
+ string(REGEX REPLACE " +" ";" CMAKE_DEPENDENT_OPTION_DEP "${d}")
68
+ if(${CMAKE_DEPENDENT_OPTION_DEP})
69
+ else()
70
+ set(${option}_AVAILABLE 0)
71
+ endif()
72
+ endforeach()
73
+ endif()
74
+ if(${option}_AVAILABLE)
75
+ option(${option} "${doc}" "${default}")
76
+ set(${option} "${${option}}" CACHE BOOL "${doc}" FORCE)
77
+ else()
78
+ if(${option} MATCHES "^${option}$")
79
+ else()
80
+ set(${option} "${${option}}" CACHE INTERNAL "${doc}")
81
+ endif()
82
+ set(${option} ${force})
83
+ endif()
84
+ else()
85
+ set(${option} "${${option}_ISSET}")
86
+ endif()
87
+ if("x${_CDO_CMP0127}x" STREQUAL "xx" AND "x${depends}x" MATCHES "[^A-Za-z0-9_.; ]")
88
+ cmake_policy(GET_WARNING CMP0127 _CDO_CMP0127_WARNING)
89
+ message(AUTHOR_WARNING "${_CDO_CMP0127_WARNING}")
90
+ endif()
91
+ unset(_CDO_CMP0127)
92
+ endmacro()
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineASMCompiler.cmake ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # determine the compiler to use for ASM programs
6
+
7
+ include(${CMAKE_ROOT}/Modules/CMakeDetermineCompiler.cmake)
8
+
9
+ if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER)
10
+ # prefer the environment variable ASM
11
+ if(NOT $ENV{ASM${ASM_DIALECT}} STREQUAL "")
12
+ get_filename_component(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT $ENV{ASM${ASM_DIALECT}} PROGRAM PROGRAM_ARGS CMAKE_ASM${ASM_DIALECT}_FLAGS_ENV_INIT)
13
+ if(CMAKE_ASM${ASM_DIALECT}_FLAGS_ENV_INIT)
14
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ARG1 "${CMAKE_ASM${ASM_DIALECT}_FLAGS_ENV_INIT}" CACHE STRING "Arguments to ASM${ASM_DIALECT} compiler")
15
+ endif()
16
+ if(NOT EXISTS ${CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT})
17
+ message(FATAL_ERROR "Could not find compiler set in environment variable ASM${ASM_DIALECT}:\n$ENV{ASM${ASM_DIALECT}}.")
18
+ endif()
19
+ endif()
20
+
21
+ # finally list compilers to try
22
+ if("ASM${ASM_DIALECT}" STREQUAL "ASM") # the generic assembler support
23
+ if(NOT CMAKE_ASM_COMPILER_INIT)
24
+ if(CMAKE_C_COMPILER)
25
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_LIST ${CMAKE_C_COMPILER})
26
+ elseif(CMAKE_CXX_COMPILER)
27
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_LIST ${CMAKE_CXX_COMPILER})
28
+ else()
29
+ # List all default C and CXX compilers
30
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_LIST
31
+ ${_CMAKE_TOOLCHAIN_PREFIX}cc ${_CMAKE_TOOLCHAIN_PREFIX}gcc cl bcc xlc
32
+ CC ${_CMAKE_TOOLCHAIN_PREFIX}c++ ${_CMAKE_TOOLCHAIN_PREFIX}g++ aCC cl bcc xlC)
33
+ endif()
34
+ endif()
35
+ else() # some specific assembler "dialect"
36
+ if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT AND NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_LIST)
37
+ message(FATAL_ERROR "CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT or CMAKE_ASM${ASM_DIALECT}_COMPILER_LIST must be preset !")
38
+ endif()
39
+ endif()
40
+
41
+ # Find the compiler.
42
+ _cmake_find_compiler(ASM${ASM_DIALECT})
43
+
44
+ else()
45
+ _cmake_find_compiler_path(ASM${ASM_DIALECT})
46
+ endif()
47
+ mark_as_advanced(CMAKE_ASM${ASM_DIALECT}_COMPILER)
48
+
49
+ if (NOT _CMAKE_TOOLCHAIN_LOCATION)
50
+ get_filename_component(_CMAKE_TOOLCHAIN_LOCATION "${CMAKE_ASM${ASM_DIALECT}_COMPILER}" PATH)
51
+ endif ()
52
+
53
+
54
+ if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
55
+
56
+ # Table of per-vendor compiler id flags with expected output.
57
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS GNU )
58
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_GNU "--version")
59
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_GNU "(GNU assembler)|(GCC)|(Free Software Foundation)")
60
+
61
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS AppleClang )
62
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_AppleClang "--version")
63
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_AppleClang "(Apple (clang|LLVM) version)")
64
+
65
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS Clang )
66
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_Clang "--version")
67
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_Clang "(clang version)")
68
+
69
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS ARMClang )
70
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_ARMClang "--version")
71
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_ARMClang "armclang")
72
+
73
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS OrangeC )
74
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_OrangeC "--version")
75
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_OrangeC "occ \\(OrangeC\\) Version")
76
+
77
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS HP )
78
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_HP "-V")
79
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_HP "HP C")
80
+
81
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS Intel )
82
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_Intel "--version")
83
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_Intel "(ICC)")
84
+
85
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS IntelLLVM )
86
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_IntelLLVM "--version")
87
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_IntelLLVM "(Intel[^\n]+oneAPI)")
88
+
89
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS SunPro )
90
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_SunPro "-V")
91
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_SunPro "Sun C")
92
+
93
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS XL )
94
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_XL "-qversion")
95
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_XL "XL C")
96
+
97
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS MSVC )
98
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_MSVC "-?")
99
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_MSVC "Microsoft")
100
+
101
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS TI )
102
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_TI "-h")
103
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_TI "Texas Instruments")
104
+
105
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS TIClang )
106
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_TIClang "--version")
107
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_TIClang "(TI (.*) Clang Compiler)")
108
+
109
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS IAR)
110
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_IAR )
111
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_IAR "IAR Assembler")
112
+
113
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS ARMCC)
114
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_ARMCC )
115
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_ARMCC "(ARM Compiler)|(ARM Assembler)|(Arm Compiler)")
116
+
117
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS NASM)
118
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_NASM "-v")
119
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_NASM "(NASM version)")
120
+
121
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS YASM)
122
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_YASM "--version")
123
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_YASM "(yasm)")
124
+
125
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS ADSP)
126
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_ADSP "-version")
127
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_ADSP "Analog Devices")
128
+
129
+ list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS QCC)
130
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_QCC "-V")
131
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_QCC "gcc_nto")
132
+
133
+ include(CMakeDetermineCompilerId)
134
+ set(userflags)
135
+ CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT} "${userflags}")
136
+ set(_variant "")
137
+ if("x${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}" STREQUAL "xIAR")
138
+ # primary necessary to detect architecture, so the right archiver and linker can be picked
139
+ # eg. "IAR Assembler V8.10.1.12857/W32 for ARM" or "IAR Assembler V4.11.1.4666 for Renesas RX"
140
+ # Earlier versions did not provide `--version`, so grep the full output to extract Assembler ID string
141
+ string(REGEX MATCH "IAR Assembler[^\r\n]*" _compileid "${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_OUTPUT}")
142
+ if("${_compileid}" MATCHES "V([0-9]+\\.[0-9]+\\.[0-9]+)")
143
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_VERSION ${CMAKE_MATCH_1})
144
+ endif()
145
+ if("${_compileid}" MATCHES "for.*(MSP430|8051|ARM|AVR|RH850|RISC-?V|RL78|RX|STM8|V850)")
146
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID ${CMAKE_MATCH_1})
147
+ endif()
148
+ elseif("x${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}" STREQUAL "xClang")
149
+ # Test whether an MSVC-like command-line option works.
150
+ execute_process(COMMAND ${CMAKE_ASM${ASM_DIALECT}_COMPILER} -?
151
+ OUTPUT_VARIABLE _clang_output
152
+ ERROR_VARIABLE _clang_output
153
+ RESULT_VARIABLE _clang_result)
154
+ if(_clang_result EQUAL 0)
155
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_FRONTEND_VARIANT "MSVC")
156
+ set(CMAKE_ASM${ASM_DIALECT}_SIMULATE_ID MSVC)
157
+ else()
158
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_FRONTEND_VARIANT "GNU")
159
+ endif()
160
+ set(_variant " with ${CMAKE_ASM${ASM_DIALECT}_COMPILER_FRONTEND_VARIANT}-like command-line")
161
+ endif()
162
+
163
+ _cmake_find_compiler_sysroot(ASM${ASM_DIALECT})
164
+
165
+ unset(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_OUTPUT)
166
+ unset(_all_compileid_matches)
167
+ unset(_compileid)
168
+ unset(_clang_result)
169
+ unset(_clang_output)
170
+ endif()
171
+
172
+ if(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
173
+ if(CMAKE_ASM${ASM_DIALECT}_COMPILER_VERSION)
174
+ set(_version " ${CMAKE_ASM${ASM_DIALECT}_COMPILER_VERSION}")
175
+ else()
176
+ set(_version "")
177
+ endif()
178
+ if(CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID AND "x${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}" STREQUAL "xIAR")
179
+ set(_archid " ${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}")
180
+ else()
181
+ set(_archid "")
182
+ endif()
183
+ message(STATUS "The ASM${ASM_DIALECT} compiler identification is ${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}${_archid}${_version}${_variant}")
184
+ unset(_archid)
185
+ unset(_version)
186
+ unset(_variant)
187
+ else()
188
+ message(STATUS "The ASM${ASM_DIALECT} compiler identification is unknown")
189
+ endif()
190
+
191
+ # If we have a gas/as cross compiler, they have usually some prefix, like
192
+ # e.g. powerpc-linux-gas, arm-elf-gas or i586-mingw32msvc-gas , optionally
193
+ # with a 3-component version number at the end
194
+ # The other tools of the toolchain usually have the same prefix
195
+ # NAME_WE cannot be used since then this test will fail for names like
196
+ # "arm-unknown-nto-qnx6.3.0-gas.exe", where BASENAME would be
197
+ # "arm-unknown-nto-qnx6" instead of the correct "arm-unknown-nto-qnx6.3.0-"
198
+ if (NOT _CMAKE_TOOLCHAIN_PREFIX)
199
+ get_filename_component(COMPILER_BASENAME "${CMAKE_ASM${ASM_DIALECT}_COMPILER}" NAME)
200
+ if (COMPILER_BASENAME MATCHES "^(.+-)g?as(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
201
+ set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
202
+ endif ()
203
+ endif ()
204
+
205
+ # Now try the C compiler regexp:
206
+ if (NOT _CMAKE_TOOLCHAIN_PREFIX)
207
+ if (COMPILER_BASENAME MATCHES "^(.+-)g?cc(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
208
+ set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
209
+ endif ()
210
+ endif ()
211
+
212
+ # Finally try the CXX compiler regexp:
213
+ if (NOT _CMAKE_TOOLCHAIN_PREFIX)
214
+ if (COMPILER_BASENAME MATCHES "^(.+-)[gc]\\+\\+(-[0-9]+\\.[0-9]+\\.[0-9]+)?(\\.exe)?$")
215
+ set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
216
+ endif ()
217
+ endif ()
218
+
219
+
220
+ set(_CMAKE_PROCESSING_LANGUAGE "ASM")
221
+ include(CMakeFindBinUtils)
222
+ include(Compiler/${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}-FindBinUtils OPTIONAL)
223
+ unset(_CMAKE_PROCESSING_LANGUAGE)
224
+
225
+ set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ENV_VAR "ASM${ASM_DIALECT}")
226
+
227
+ if(CMAKE_ASM${ASM_DIALECT}_COMPILER)
228
+ message(STATUS "Found assembler: ${CMAKE_ASM${ASM_DIALECT}_COMPILER}")
229
+ else()
230
+ message(STATUS "Didn't find assembler")
231
+ endif()
232
+
233
+ foreach(_var
234
+ COMPILER
235
+ COMPILER_ID
236
+ COMPILER_ARG1
237
+ COMPILER_ENV_VAR
238
+ COMPILER_AR
239
+ COMPILER_RANLIB
240
+ COMPILER_VERSION
241
+ )
242
+ set(_CMAKE_ASM_${_var} "${CMAKE_ASM${ASM_DIALECT}_${_var}}")
243
+ endforeach()
244
+
245
+ if(CMAKE_ASM${ASM_DIALECT}_COMPILER_SYSROOT)
246
+ string(CONCAT _SET_CMAKE_ASM_COMPILER_SYSROOT
247
+ "set(CMAKE_ASM${ASM_DIALECT}_COMPILER_SYSROOT \"${CMAKE_ASM${ASM_DIALECT}_COMPILER_SYSROOT}\")\n"
248
+ "set(CMAKE_COMPILER_SYSROOT \"${CMAKE_ASM${ASM_DIALECT}_COMPILER_SYSROOT}\")")
249
+ else()
250
+ set(_SET_CMAKE_ASM_COMPILER_SYSROOT "")
251
+ endif()
252
+
253
+ if(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_MATCH)
254
+ set(_SET_CMAKE_ASM_COMPILER_ID_VENDOR_MATCH
255
+ "set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_MATCH [==[${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_MATCH}]==])")
256
+ else()
257
+ set(_SET_CMAKE_ASM_COMPILER_ID_VENDOR_MATCH "")
258
+ endif()
259
+
260
+ if(CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID)
261
+ set(_SET_CMAKE_ASM_COMPILER_ARCHITECTURE_ID
262
+ "set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID ${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID})")
263
+ else()
264
+ set(_SET_CMAKE_ASM_COMPILER_ARCHITECTURE_ID "")
265
+ endif()
266
+
267
+ # configure variables set in this file for fast reload later on
268
+ configure_file(${CMAKE_ROOT}/Modules/CMakeASMCompiler.cmake.in
269
+ ${CMAKE_PLATFORM_INFO_DIR}/CMakeASM${ASM_DIALECT}Compiler.cmake @ONLY)
270
+
271
+ foreach(_var
272
+ COMPILER
273
+ COMPILER_ID
274
+ COMPILER_ARG1
275
+ COMPILER_ENV_VAR
276
+ COMPILER_AR
277
+ COMPILER_RANLIB
278
+ COMPILER_VERSION
279
+ )
280
+ unset(_CMAKE_ASM_${_var})
281
+ endforeach()
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineISPCCompiler.cmake ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # determine the compiler to use for ISPC programs
6
+
7
+ include(${CMAKE_ROOT}/Modules/CMakeDetermineCompiler.cmake)
8
+
9
+ if( NOT (("${CMAKE_GENERATOR}" MATCHES "Make") OR ("${CMAKE_GENERATOR}" MATCHES "Ninja")) )
10
+ message(FATAL_ERROR "ISPC language not currently supported by \"${CMAKE_GENERATOR}\" generator")
11
+ endif()
12
+
13
+ # Load system-specific compiler preferences for this language.
14
+ include(Platform/${CMAKE_SYSTEM_NAME}-Determine-ISPC OPTIONAL)
15
+ include(Platform/${CMAKE_SYSTEM_NAME}-ISPC OPTIONAL)
16
+ if(NOT CMAKE_ISPC_COMPILER_NAMES)
17
+ set(CMAKE_ISPC_COMPILER_NAMES ispc)
18
+ endif()
19
+
20
+
21
+ if(NOT CMAKE_ISPC_COMPILER)
22
+
23
+ set(CMAKE_ISPC_COMPILER_INIT NOTFOUND)
24
+
25
+ # prefer the environment variable CC
26
+ if(NOT $ENV{ISPC} STREQUAL "")
27
+ get_filename_component(CMAKE_ISPC_COMPILER_INIT $ENV{ISPC} PROGRAM PROGRAM_ARGS CMAKE_ISPC_FLAGS_ENV_INIT)
28
+ if(CMAKE_ISPC_FLAGS_ENV_INIT)
29
+ set(CMAKE_ISPC_COMPILER_ARG1 "${CMAKE_ISPC_FLAGS_ENV_INIT}" CACHE STRING "First argument to ISPC compiler")
30
+ endif()
31
+ if(NOT EXISTS ${CMAKE_ISPC_COMPILER_INIT})
32
+ message(FATAL_ERROR "Could not find compiler set in environment variable ISPC:\n$ENV{ISPC}.")
33
+ endif()
34
+ endif()
35
+
36
+ # next try prefer the compiler specified by the generator
37
+ if(CMAKE_GENERATOR_ISPC)
38
+ if(NOT CMAKE_ISPC_COMPILER_INIT)
39
+ set(CMAKE_ISPC_COMPILER_INIT ${CMAKE_GENERATOR_ISPC})
40
+ endif()
41
+ endif()
42
+
43
+ # finally list compilers to try
44
+ if(NOT CMAKE_ISPC_COMPILER_INIT)
45
+ set(CMAKE_ISPC_COMPILER_LIST ${_CMAKE_TOOLCHAIN_PREFIX}ispc ispc)
46
+ endif()
47
+
48
+ # Find the compiler.
49
+ _cmake_find_compiler(ISPC)
50
+
51
+ else()
52
+ _cmake_find_compiler_path(ISPC)
53
+ endif()
54
+ mark_as_advanced(CMAKE_ISPC_COMPILER)
55
+
56
+ if(NOT CMAKE_ISPC_COMPILER_ID_RUN)
57
+ set(CMAKE_ISPC_COMPILER_ID_RUN 1)
58
+
59
+ # Try to identify the compiler.
60
+ set(CMAKE_ISPC_COMPILER_ID)
61
+ set(CMAKE_ISPC_PLATFORM_ID)
62
+
63
+
64
+ set(CMAKE_ISPC_COMPILER_ID_TEST_FLAGS_FIRST
65
+ # setup logic to make sure ISPC outputs a file
66
+ "-o cmake_ispc_output"
67
+ )
68
+
69
+ include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
70
+ CMAKE_DETERMINE_COMPILER_ID(ISPC ISPCFLAGS CMakeISPCCompilerId.ispc)
71
+
72
+ _cmake_find_compiler_sysroot(ISPC)
73
+ endif()
74
+
75
+ if (NOT _CMAKE_TOOLCHAIN_LOCATION)
76
+ get_filename_component(_CMAKE_TOOLCHAIN_LOCATION "${CMAKE_ISPC_COMPILER}" PATH)
77
+ endif ()
78
+
79
+ set(_CMAKE_PROCESSING_LANGUAGE "ISPC")
80
+ include(CMakeFindBinUtils)
81
+ include(Compiler/${CMAKE_ISPC_COMPILER_ID}-FindBinUtils OPTIONAL)
82
+ unset(_CMAKE_PROCESSING_LANGUAGE)
83
+
84
+ if(CMAKE_ISPC_COMPILER_ID_VENDOR_MATCH)
85
+ set(_SET_CMAKE_ISPC_COMPILER_ID_VENDOR_MATCH
86
+ "set(CMAKE_ISPC_COMPILER_ID_VENDOR_MATCH [==[${CMAKE_ISPC_COMPILER_ID_VENDOR_MATCH}]==])")
87
+ else()
88
+ set(_SET_CMAKE_ISPC_COMPILER_ID_VENDOR_MATCH "")
89
+ endif()
90
+
91
+
92
+ # configure variables set in this file for fast reload later on
93
+ configure_file(${CMAKE_ROOT}/Modules/CMakeISPCCompiler.cmake.in
94
+ ${CMAKE_PLATFORM_INFO_DIR}/CMakeISPCCompiler.cmake @ONLY)
95
+
96
+ set(CMAKE_ISPC_COMPILER_ENV_VAR "ISPC")
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineJavaCompiler.cmake ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # determine the compiler to use for Java programs
6
+ # NOTE, a generator may set CMAKE_Java_COMPILER before
7
+ # loading this file to force a compiler.
8
+
9
+ if(NOT CMAKE_Java_COMPILER)
10
+ # prefer the environment variable CC
11
+ if(NOT $ENV{JAVA_COMPILER} STREQUAL "")
12
+ get_filename_component(CMAKE_Java_COMPILER_INIT $ENV{JAVA_COMPILER} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
13
+ if(CMAKE_Java_FLAGS_ENV_INIT)
14
+ set(CMAKE_Java_COMPILER_ARG1 "${CMAKE_Java_FLAGS_ENV_INIT}" CACHE STRING "Arguments to Java compiler")
15
+ endif()
16
+ if(NOT EXISTS ${CMAKE_Java_COMPILER_INIT})
17
+ message(SEND_ERROR "Could not find compiler set in environment variable JAVA_COMPILER:\n$ENV{JAVA_COMPILER}.")
18
+ endif()
19
+ endif()
20
+
21
+ if(NOT $ENV{JAVA_RUNTIME} STREQUAL "")
22
+ get_filename_component(CMAKE_Java_RUNTIME_INIT $ENV{JAVA_RUNTIME} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
23
+ if(NOT EXISTS ${CMAKE_Java_RUNTIME_INIT})
24
+ message(SEND_ERROR "Could not find compiler set in environment variable JAVA_RUNTIME:\n$ENV{JAVA_RUNTIME}.")
25
+ endif()
26
+ endif()
27
+
28
+ if(NOT $ENV{JAVA_ARCHIVE} STREQUAL "")
29
+ get_filename_component(CMAKE_Java_ARCHIVE_INIT $ENV{JAVA_ARCHIVE} PROGRAM PROGRAM_ARGS CMAKE_Java_FLAGS_ENV_INIT)
30
+ if(NOT EXISTS ${CMAKE_Java_ARCHIVE_INIT})
31
+ message(SEND_ERROR "Could not find compiler set in environment variable JAVA_ARCHIVE:\n$ENV{JAVA_ARCHIVE}.")
32
+ endif()
33
+ endif()
34
+
35
+ set(Java_BIN_PATH
36
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\2.0;JavaHome]/bin"
37
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.9;JavaHome]/bin"
38
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.8;JavaHome]/bin"
39
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.7;JavaHome]/bin"
40
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.6;JavaHome]/bin"
41
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.5;JavaHome]/bin"
42
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/bin"
43
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/bin"
44
+ $ENV{JAVA_HOME}/bin
45
+ /usr/bin
46
+ /usr/lib/java/bin
47
+ /usr/share/java/bin
48
+ /usr/local/bin
49
+ /usr/local/java/bin
50
+ /usr/local/java/share/bin
51
+ /usr/java/j2sdk1.4.2_04
52
+ /usr/lib/j2sdk1.4-sun/bin
53
+ /usr/java/j2sdk1.4.2_09/bin
54
+ /usr/lib/j2sdk1.5-sun/bin
55
+ /opt/sun-jdk-1.5.0.04/bin
56
+ /usr/local/jdk-1.7.0/bin
57
+ /usr/local/jdk-1.6.0/bin
58
+ )
59
+ # if no compiler has been specified yet, then look for one
60
+ if(CMAKE_Java_COMPILER_INIT)
61
+ set(CMAKE_Java_COMPILER ${CMAKE_Java_COMPILER_INIT} CACHE PATH "Java Compiler")
62
+ else()
63
+ find_program(CMAKE_Java_COMPILER
64
+ NAMES javac
65
+ PATHS ${Java_BIN_PATH}
66
+ )
67
+ endif()
68
+
69
+ # if no runtime has been specified yet, then look for one
70
+ if(CMAKE_Java_RUNTIME_INIT)
71
+ set(CMAKE_Java_RUNTIME ${CMAKE_Java_RUNTIME_INIT} CACHE PATH "Java Compiler")
72
+ else()
73
+ find_program(CMAKE_Java_RUNTIME
74
+ NAMES java
75
+ PATHS ${Java_BIN_PATH}
76
+ )
77
+ endif()
78
+
79
+ # if no archive has been specified yet, then look for one
80
+ if(CMAKE_Java_ARCHIVE_INIT)
81
+ set(CMAKE_Java_ARCHIVE ${CMAKE_Java_ARCHIVE_INIT} CACHE PATH "Java Compiler")
82
+ else()
83
+ find_program(CMAKE_Java_ARCHIVE
84
+ NAMES jar
85
+ PATHS ${Java_BIN_PATH}
86
+ )
87
+ endif()
88
+ endif()
89
+ mark_as_advanced(CMAKE_Java_COMPILER)
90
+
91
+ # configure variables set in this file for fast reload later on
92
+ configure_file(${CMAKE_ROOT}/Modules/CMakeJavaCompiler.cmake.in
93
+ ${CMAKE_PLATFORM_INFO_DIR}/CMakeJavaCompiler.cmake @ONLY)
94
+ set(CMAKE_Java_COMPILER_ENV_VAR "JAVA_COMPILER")
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindBinUtils.cmake ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # search for additional tools required for C/C++ (and other languages ?)
6
+ #
7
+ # If the internal cmake variable _CMAKE_TOOLCHAIN_PREFIX is set, this is used
8
+ # as prefix for the tools (e.g. arm-elf-gcc etc.)
9
+ # If the cmake variable _CMAKE_TOOLCHAIN_LOCATION is set, the compiler is
10
+ # searched only there. The other tools are at first searched there, then
11
+ # also in the default locations.
12
+ #
13
+ # Sets the following variables:
14
+ # CMAKE_AR
15
+ # CMAKE_RANLIB
16
+ # CMAKE_LINKER
17
+ # CMAKE_MT
18
+ # CMAKE_STRIP
19
+ # CMAKE_INSTALL_NAME_TOOL
20
+
21
+ # on UNIX, cygwin and mingw
22
+
23
+ cmake_policy(PUSH)
24
+ cmake_policy(SET CMP0057 NEW) # if IN_LIST
25
+
26
+ # Resolve full path of CMAKE_TOOL from user-defined name and SEARCH_PATH.
27
+ function(__resolve_tool_path CMAKE_TOOL SEARCH_PATH DOCSTRING)
28
+
29
+ if(${CMAKE_TOOL})
30
+ # We only get here if CMAKE_TOOL was
31
+ # specified using -D or a pre-made CMakeCache.txt (e.g. via ctest)
32
+ # or set in CMAKE_TOOLCHAIN_FILE.
33
+
34
+ get_filename_component(_CMAKE_USER_TOOL_PATH "${${CMAKE_TOOL}}" DIRECTORY)
35
+ # Is CMAKE_TOOL a user-defined name instead of a full path?
36
+ if(NOT _CMAKE_USER_TOOL_PATH)
37
+
38
+ # Find CMAKE_TOOL in the SEARCH_PATH directory by user-defined name.
39
+ find_program(_CMAKE_TOOL_WITH_PATH NAMES ${${CMAKE_TOOL}} HINTS ${SEARCH_PATH} NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH)
40
+ if(_CMAKE_TOOL_WITH_PATH)
41
+
42
+ # Overwrite CMAKE_TOOL with full path found in SEARCH_PATH.
43
+ set(${CMAKE_TOOL} ${_CMAKE_TOOL_WITH_PATH} PARENT_SCOPE)
44
+
45
+ get_property(_CMAKE_TOOL_CACHED CACHE ${CMAKE_TOOL} PROPERTY TYPE)
46
+ # If CMAKE_TOOL is present in the CMake Cache, then overwrit it as well.
47
+ if(_CMAKE_TOOL_CACHED)
48
+ set(${CMAKE_TOOL} "${_CMAKE_TOOL_WITH_PATH}" CACHE STRING ${DOCSTRING} FORCE)
49
+ endif()
50
+
51
+ endif()
52
+ unset(_CMAKE_TOOL_WITH_PATH CACHE)
53
+
54
+ endif()
55
+
56
+ endif()
57
+
58
+ endfunction()
59
+
60
+ __resolve_tool_path(CMAKE_LINKER "${_CMAKE_TOOLCHAIN_LOCATION}" "Default Linker")
61
+ __resolve_tool_path(CMAKE_MT "${_CMAKE_TOOLCHAIN_LOCATION}" "Default Manifest Tool")
62
+
63
+ macro(__resolve_linker_path __linker_type __name __search_path __doc)
64
+ if(NOT CMAKE_LINKER_${__linker_type})
65
+ set( CMAKE_LINKER_${__linker_type} "${__name}")
66
+ endif()
67
+ __resolve_tool_path(CMAKE_LINKER_${__linker_type} "${__search_path}" "${__doc}")
68
+ endmacro()
69
+
70
+ set(_CMAKE_TOOL_VARS "")
71
+
72
+ # if it's the MS C/CXX compiler, search for link
73
+ if(("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_SIMULATE_ID}" STREQUAL "xMSVC" AND
74
+ ("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_FRONTEND_VARIANT}" STREQUAL "xMSVC"
75
+ OR NOT "x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL "xClang"))
76
+ OR "x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL "xMSVC"
77
+ OR (CMAKE_HOST_WIN32 AND "x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL "xPGI")
78
+ OR (CMAKE_HOST_WIN32 AND "x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL "xNVIDIA")
79
+ OR (CMAKE_HOST_WIN32 AND "x${_CMAKE_PROCESSING_LANGUAGE}" STREQUAL "xISPC")
80
+ OR (CMAKE_GENERATOR MATCHES "Visual Studio"
81
+ AND NOT CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android"))
82
+
83
+ # Start with the canonical names.
84
+ set(_CMAKE_LINKER_NAMES "link")
85
+ set(_CMAKE_AR_NAMES "lib")
86
+ set(_CMAKE_MT_NAMES "mt")
87
+
88
+ # Prepend toolchain-specific names.
89
+ if("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" MATCHES "^x(Clang|LLVMFlang)$")
90
+ set(_CMAKE_NM_NAMES "llvm-nm" "nm")
91
+ list(PREPEND _CMAKE_AR_NAMES "llvm-lib")
92
+ if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_VERSION}" VERSION_GREATER_EQUAL 14.0.2)
93
+ list(PREPEND _CMAKE_MT_NAMES "llvm-mt")
94
+ endif()
95
+ list(PREPEND _CMAKE_LINKER_NAMES "lld-link")
96
+ list(APPEND _CMAKE_TOOL_VARS NM)
97
+ elseif("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL "xIntel")
98
+ list(PREPEND _CMAKE_AR_NAMES "xilib")
99
+ list(PREPEND _CMAKE_LINKER_NAMES "xilink")
100
+ endif()
101
+
102
+ list(APPEND _CMAKE_TOOL_VARS LINKER MT AR)
103
+
104
+ # look-up for possible usable linker
105
+ __resolve_linker_path(LINK "link" "${_CMAKE_TOOLCHAIN_LOCATION}" "link Linker")
106
+ __resolve_linker_path(LLD "lld-link" "${_CMAKE_TOOLCHAIN_LOCATION}" "lld-link Linker")
107
+
108
+ elseif("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" MATCHES "^x(Open)?Watcom$")
109
+ set(_CMAKE_LINKER_NAMES "wlink")
110
+ set(_CMAKE_AR_NAMES "wlib")
111
+ list(APPEND _CMAKE_TOOL_VARS LINKER AR)
112
+
113
+ elseif("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" MATCHES "^xIAR$")
114
+ # Get the architecture from the IAR compiler parent directory
115
+ get_filename_component(__iar_bin_dir "${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER}" DIRECTORY)
116
+ get_filename_component(__iar_toolkit_dir "${__iar_bin_dir}" DIRECTORY)
117
+ get_filename_component(__iar_arch_id "${__iar_toolkit_dir}" NAME)
118
+ # IAR Archive Tool
119
+ set(_CMAKE_AR_NAMES
120
+ "iarchive" "iarchive.exe"
121
+ "xar" "xar.exe"
122
+ )
123
+ # IAR Linker
124
+ set(_CMAKE_LINKER_NAMES
125
+ "ilink${__iar_arch_id}" "ilink${__iar_arch_id}.exe"
126
+ "xlink${__iar_arch_id}" "xlink${__iar_arch_id}.exe"
127
+ "xlink" "xlink.exe"
128
+ )
129
+ # IAR ELF Dumper
130
+ set(_CMAKE_IAR_ELFDUMP_NAMES
131
+ "ielfdump${__iar_arch_id}" "ielfdump${__iar_arch_id}.exe"
132
+ )
133
+ # IAR ELF Tool
134
+ set(_CMAKE_IAR_ELFTOOL_NAMES
135
+ "ielftool" "ielftool.exe"
136
+ )
137
+ # IAR ELF Exe to Object Tool
138
+ set(_CMAKE_IAR_EXE2OBJ_NAMES
139
+ "iexe2obj" "iexe2obj.exe"
140
+ )
141
+ # IAR Object File Manipulator
142
+ set(_CMAKE_IAR_OBJMANIP_NAMES
143
+ "iobjmanip" "iobjmanip.exe"
144
+ )
145
+ # IAR Absolute Symbol Exporter
146
+ set(_CMAKE_IAR_SYMEXPORT_NAMES
147
+ "isymexport" "isymexport.exe"
148
+ )
149
+ list(APPEND _CMAKE_TOOL_VARS AR LINKER IAR_ELFDUMP IAR_ELFTOOL IAR_EXE2OBJ IAR_OBJMANIP IAR_SYMEXPORT)
150
+ unset(__iar_bin_dir)
151
+ unset(__iar_toolkit_dir)
152
+ unset(__iar_arch_id)
153
+
154
+ # in all other cases search for ar, ranlib, etc.
155
+ else()
156
+ if(CMAKE_C_COMPILER_EXTERNAL_TOOLCHAIN)
157
+ set(_CMAKE_TOOLCHAIN_LOCATION ${_CMAKE_TOOLCHAIN_LOCATION} ${CMAKE_C_COMPILER_EXTERNAL_TOOLCHAIN}/bin)
158
+ endif()
159
+ if(CMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN)
160
+ set(_CMAKE_TOOLCHAIN_LOCATION ${_CMAKE_TOOLCHAIN_LOCATION} ${CMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN}/bin)
161
+ endif()
162
+
163
+ # Start with the canonical names.
164
+ set(_CMAKE_AR_NAMES "ar")
165
+ set(_CMAKE_RANLIB_NAMES "ranlib")
166
+ set(_CMAKE_STRIP_NAMES "strip")
167
+ set(_CMAKE_LINKER_NAMES "ld")
168
+ set(_CMAKE_NM_NAMES "nm")
169
+ set(_CMAKE_OBJDUMP_NAMES "objdump")
170
+ set(_CMAKE_OBJCOPY_NAMES "objcopy")
171
+ set(_CMAKE_READELF_NAMES "readelf")
172
+ set(_CMAKE_DLLTOOL_NAMES "dlltool")
173
+ set(_CMAKE_ADDR2LINE_NAMES "addr2line")
174
+ set(_CMAKE_TAPI_NAMES "tapi")
175
+
176
+ # Prepend toolchain-specific names.
177
+ if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL Clang)
178
+ if("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_SIMULATE_ID}" STREQUAL "xMSVC")
179
+ list(PREPEND _CMAKE_LINKER_NAMES "lld-link")
180
+ elseif(NOT APPLE)
181
+ list(PREPEND _CMAKE_LINKER_NAMES "ld.lld")
182
+ endif()
183
+ # llvm-ar does not generate a symbol table that the Apple ld64 linker accepts.
184
+ if(NOT APPLE)
185
+ list(PREPEND _CMAKE_AR_NAMES "llvm-ar")
186
+ endif()
187
+ list(PREPEND _CMAKE_RANLIB_NAMES "llvm-ranlib")
188
+ # llvm-strip versions prior to 11 require additional flags we do not yet add.
189
+ if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_VERSION}" VERSION_GREATER_EQUAL 11)
190
+ # llvm-strip does not seem to support chained fixup format on macOS correctly.
191
+ if(NOT APPLE)
192
+ list(PREPEND _CMAKE_STRIP_NAMES "llvm-strip")
193
+ endif()
194
+ endif()
195
+ list(PREPEND _CMAKE_NM_NAMES "llvm-nm")
196
+ if("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_VERSION}" VERSION_GREATER_EQUAL 9)
197
+ # llvm-objcopy and llvm-objdump on versions prior to 9 did not support everything we need.
198
+ list(PREPEND _CMAKE_OBJCOPY_NAMES "llvm-objcopy")
199
+ list(PREPEND _CMAKE_OBJDUMP_NAMES "llvm-objdump")
200
+ endif()
201
+ list(PREPEND _CMAKE_READELF_NAMES "llvm-readelf")
202
+ list(PREPEND _CMAKE_DLLTOOL_NAMES "llvm-dlltool")
203
+ list(PREPEND _CMAKE_ADDR2LINE_NAMES "llvm-addr2line")
204
+ elseif("${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" STREQUAL ARMClang)
205
+ list(PREPEND _CMAKE_AR_NAMES "armar")
206
+ list(PREPEND _CMAKE_LINKER_NAMES "armlink")
207
+ endif()
208
+
209
+ list(APPEND _CMAKE_TOOL_VARS AR RANLIB STRIP LINKER NM OBJDUMP OBJCOPY READELF DLLTOOL ADDR2LINE TAPI)
210
+ endif()
211
+
212
+ foreach(_CMAKE_TOOL IN LISTS _CMAKE_TOOL_VARS)
213
+ # Build the final list of prefixed/suffixed names.
214
+ set(_CMAKE_${_CMAKE_TOOL}_FIND_NAMES "")
215
+ foreach(_CMAKE_TOOL_NAME IN LISTS _CMAKE_${_CMAKE_TOOL}_NAMES)
216
+ list(APPEND _CMAKE_${_CMAKE_TOOL}_FIND_NAMES
217
+ ${_CMAKE_TOOLCHAIN_PREFIX}${_CMAKE_TOOL_NAME}${_CMAKE_TOOLCHAIN_SUFFIX}
218
+ ${_CMAKE_TOOLCHAIN_PREFIX}${_CMAKE_TOOL_NAME}
219
+ ${_CMAKE_TOOL_NAME}${_CMAKE_TOOLCHAIN_SUFFIX}
220
+ ${_CMAKE_TOOL_NAME}
221
+ )
222
+ endforeach()
223
+ list(REMOVE_DUPLICATES _CMAKE_${_CMAKE_TOOL}_FIND_NAMES)
224
+
225
+ find_program(CMAKE_${_CMAKE_TOOL} NAMES ${_CMAKE_${_CMAKE_TOOL}_FIND_NAMES} HINTS ${_CMAKE_TOOLCHAIN_LOCATION} NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH)
226
+ unset(_CMAKE_${_CMAKE_TOOL}_FIND_NAMES)
227
+ endforeach()
228
+
229
+ if(NOT CMAKE_RANLIB)
230
+ set(CMAKE_RANLIB : CACHE INTERNAL "noop for ranlib")
231
+ endif()
232
+
233
+ if(APPLE AND "TAPI" IN_LIST _CMAKE_TOOL_VARS AND NOT CMAKE_TAPI)
234
+ # try to pick-up from Apple toolchain
235
+ execute_process(COMMAND xcrun --find tapi
236
+ OUTPUT_VARIABLE _xcrun_out
237
+ OUTPUT_STRIP_TRAILING_WHITESPACE
238
+ ERROR_QUIET
239
+ RESULT_VARIABLE _xcrun_failed)
240
+ if(NOT _xcrun_failed AND EXISTS "${_xcrun_out}")
241
+ set_property(CACHE CMAKE_TAPI PROPERTY VALUE "${_xcrun_out}")
242
+ endif()
243
+ unset(_xcrun_out)
244
+ unset(_xcrun_failed)
245
+ endif()
246
+
247
+
248
+ if(CMAKE_PLATFORM_HAS_INSTALLNAME)
249
+ find_program(CMAKE_INSTALL_NAME_TOOL NAMES ${_CMAKE_TOOLCHAIN_PREFIX}install_name_tool HINTS ${_CMAKE_TOOLCHAIN_LOCATION} NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH)
250
+
251
+ if(NOT CMAKE_INSTALL_NAME_TOOL)
252
+ message(FATAL_ERROR "Could not find install_name_tool, please check your installation.")
253
+ endif()
254
+
255
+ list(APPEND _CMAKE_TOOL_VARS INSTALL_NAME_TOOL)
256
+ endif()
257
+
258
+ # Mark any tool cache entries as advanced.
259
+ foreach(_CMAKE_TOOL IN LISTS _CMAKE_TOOL_VARS)
260
+ get_property(_CMAKE_TOOL_CACHED CACHE CMAKE_${_CMAKE_TOOL} PROPERTY TYPE)
261
+ if(_CMAKE_TOOL_CACHED)
262
+ mark_as_advanced(CMAKE_${_CMAKE_TOOL})
263
+ endif()
264
+ unset(_CMAKE_${_CMAKE_TOOL}_NAMES)
265
+ endforeach()
266
+ unset(_CMAKE_TOOL_VARS)
267
+ unset(_CMAKE_TOOL_CACHED)
268
+ unset(_CMAKE_TOOL_NAME)
269
+ unset(_CMAKE_TOOL)
270
+
271
+ if("x${CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_ID}" MATCHES "^xIAR$")
272
+ # Set for backwards compatibility
273
+ set(CMAKE_IAR_ARCHIVE "${CMAKE_AR}" CACHE FILEPATH "The IAR archiver")
274
+ set(CMAKE_IAR_LINKER "${CMAKE_LINKER}" CACHE FILEPATH "The IAR ILINK linker")
275
+ mark_as_advanced(CMAKE_IAR_LINKER CMAKE_IAR_AR)
276
+ endif()
277
+
278
+ cmake_policy(POP)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindCodeBlocks.cmake ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # This file is included in CMakeSystemSpecificInformation.cmake if
6
+ # the CodeBlocks extra generator has been selected.
7
+
8
+ find_program(CMAKE_CODEBLOCKS_EXECUTABLE NAMES codeblocks DOC "The CodeBlocks executable")
9
+
10
+ if(CMAKE_CODEBLOCKS_EXECUTABLE)
11
+ set(CMAKE_OPEN_PROJECT_COMMAND "${CMAKE_CODEBLOCKS_EXECUTABLE} <PROJECT_FILE>" )
12
+ endif()
13
+
14
+ # Determine builtin macros and include dirs:
15
+ include(${CMAKE_CURRENT_LIST_DIR}/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake)
16
+
17
+ # Try to find out how many CPUs we have and set the -j argument for make accordingly
18
+ set(_CMAKE_CODEBLOCKS_INITIAL_MAKE_ARGS "")
19
+
20
+ include(ProcessorCount)
21
+ processorcount(_CMAKE_CODEBLOCKS_PROCESSOR_COUNT)
22
+
23
+ # Only set -j if we are under UNIX and if the make-tool used actually has "make" in the name
24
+ # (we may also get here in the future e.g. for ninja)
25
+ if("${_CMAKE_CODEBLOCKS_PROCESSOR_COUNT}" GREATER 1 AND CMAKE_HOST_UNIX AND "${CMAKE_MAKE_PROGRAM}" MATCHES make)
26
+ set(_CMAKE_CODEBLOCKS_INITIAL_MAKE_ARGS "-j${_CMAKE_CODEBLOCKS_PROCESSOR_COUNT}")
27
+ endif()
28
+
29
+ # This variable is used by the CodeBlocks generator and appended to the make invocation commands.
30
+ set(CMAKE_CODEBLOCKS_MAKE_ARGUMENTS "${_CMAKE_CODEBLOCKS_INITIAL_MAKE_ARGS}" CACHE STRING "Additional command line arguments when CodeBlocks invokes make. Enter e.g. -j<some_number> to get parallel builds")
31
+
32
+ # This variable is used by the CodeBlocks generator and allows the user to overwrite the autodetected CodeBlocks compiler id
33
+ set(CMAKE_CODEBLOCKS_COMPILER_ID "" CACHE STRING "Id string of the compiler for the CodeBlocks IDE. Automatically detected when left empty")
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindPackageMode.cmake ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ CMakeFindPackageMode
6
+ --------------------
7
+
8
+ This file is executed by cmake when invoked with
9
+ :ref:`--find-package <Find-Package Tool Mode>`.
10
+ It expects that the following variables are set using ``-D``:
11
+
12
+ ``NAME``
13
+ name of the package
14
+ ``COMPILER_ID``
15
+ the CMake compiler ID for which the result is,
16
+ i.e. GNU/Intel/Clang/MSVC, etc.
17
+ ``LANGUAGE``
18
+ language for which the result will be used,
19
+ i.e. C/CXX/Fortran/ASM
20
+ ``MODE``
21
+ ``EXIST``
22
+ only check for existence of the given package
23
+ ``COMPILE``
24
+ print the flags needed for compiling an object file which uses
25
+ the given package
26
+ ``LINK``
27
+ print the flags needed for linking when using the given package
28
+ ``QUIET``
29
+ if TRUE, don't print anything
30
+ #]=======================================================================]
31
+
32
+ if(NOT NAME)
33
+ message(FATAL_ERROR "Name of the package to be searched not specified. Set the CMake variable NAME, e.g. -DNAME=JPEG .")
34
+ endif()
35
+
36
+ if(NOT COMPILER_ID)
37
+ message(FATAL_ERROR "COMPILER_ID argument not specified. In doubt, use GNU.")
38
+ endif()
39
+
40
+ if(NOT LANGUAGE)
41
+ message(FATAL_ERROR "LANGUAGE argument not specified. Use C, CXX or Fortran.")
42
+ endif()
43
+
44
+ if(NOT MODE)
45
+ message(FATAL_ERROR "MODE argument not specified. Use either EXIST, COMPILE or LINK.")
46
+ endif()
47
+
48
+ # require the current version. If we don't do this, Platforms/CYGWIN.cmake complains because
49
+ # it doesn't know whether it should set WIN32 or not:
50
+ cmake_minimum_required(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} )
51
+
52
+ macro(ENABLE_LANGUAGE)
53
+ # disable the enable_language() command, otherwise --find-package breaks on Windows.
54
+ # On Windows, enable_language(RC) is called in the platform files unconditionally.
55
+ # But in --find-package mode, we don't want (and can't) enable any language.
56
+ endmacro()
57
+
58
+ set(CMAKE_PLATFORM_INFO_DIR ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY})
59
+
60
+ include(CMakeDetermineSystem)
61
+
62
+ # short-cut some tests on Darwin, see Darwin-GNU.cmake:
63
+ if("${CMAKE_SYSTEM_NAME}" MATCHES Darwin AND "${COMPILER_ID}" MATCHES GNU)
64
+ set(CMAKE_${LANGUAGE}_SYSROOT_FLAG "")
65
+ set(CMAKE_${LANGUAGE}_OSX_DEPLOYMENT_TARGET_FLAG "")
66
+ endif()
67
+
68
+ include(CMakeSystemSpecificInitialize)
69
+
70
+ # Also load the system specific file, which sets up e.g. the search paths.
71
+ # This makes the FIND_XXX() calls work much better
72
+ include(CMakeSystemSpecificInformation)
73
+
74
+ if(UNIX)
75
+
76
+ # try to guess whether we have a 64bit system, if it has not been set
77
+ # from the outside
78
+ if(NOT CMAKE_SIZEOF_VOID_P)
79
+ set(CMAKE_SIZEOF_VOID_P 4)
80
+ if(EXISTS ${CMAKE_SYSROOT}/usr/lib64)
81
+ set(CMAKE_SIZEOF_VOID_P 8)
82
+ else()
83
+ # use the file utility to check whether itself is 64 bit:
84
+ find_program(FILE_EXECUTABLE file)
85
+ if(FILE_EXECUTABLE)
86
+ get_filename_component(FILE_ABSPATH "${FILE_EXECUTABLE}" ABSOLUTE)
87
+ execute_process(COMMAND "${FILE_ABSPATH}" "${FILE_ABSPATH}" OUTPUT_VARIABLE fileOutput ERROR_QUIET)
88
+ if("${fileOutput}" MATCHES "64-bit")
89
+ set(CMAKE_SIZEOF_VOID_P 8)
90
+ endif()
91
+ endif()
92
+ endif()
93
+ endif()
94
+
95
+ # guess Debian multiarch if it has not been set:
96
+ if(EXISTS /etc/debian_version)
97
+ if(NOT CMAKE_${LANGUAGE}_LIBRARY_ARCHITECTURE )
98
+ file(GLOB filesInLib RELATIVE /lib /lib/*-linux-gnu* )
99
+ foreach(file ${filesInLib})
100
+ if("${file}" MATCHES "${CMAKE_LIBRARY_ARCHITECTURE_REGEX}")
101
+ set(CMAKE_${LANGUAGE}_LIBRARY_ARCHITECTURE ${file})
102
+ break()
103
+ endif()
104
+ endforeach()
105
+ endif()
106
+ if(NOT CMAKE_LIBRARY_ARCHITECTURE)
107
+ set(CMAKE_LIBRARY_ARCHITECTURE ${CMAKE_${LANGUAGE}_LIBRARY_ARCHITECTURE})
108
+ endif()
109
+ endif()
110
+
111
+ endif()
112
+
113
+ set(CMAKE_${LANGUAGE}_COMPILER "dummy")
114
+ set(CMAKE_${LANGUAGE}_COMPILER_ID "${COMPILER_ID}")
115
+ include(CMake${LANGUAGE}Information)
116
+
117
+
118
+ function(set_compile_flags_var _packageName)
119
+ string(TOUPPER "${_packageName}" PACKAGE_NAME)
120
+ # Check the following variables:
121
+ # FOO_INCLUDE_DIRS
122
+ # Foo_INCLUDE_DIRS
123
+ # FOO_INCLUDES
124
+ # Foo_INCLUDES
125
+ # FOO_INCLUDE_DIR
126
+ # Foo_INCLUDE_DIR
127
+ set(includes)
128
+ if(DEFINED ${_packageName}_INCLUDE_DIRS)
129
+ set(includes ${_packageName}_INCLUDE_DIRS)
130
+ elseif(DEFINED ${PACKAGE_NAME}_INCLUDE_DIRS)
131
+ set(includes ${PACKAGE_NAME}_INCLUDE_DIRS)
132
+ elseif(DEFINED ${_packageName}_INCLUDES)
133
+ set(includes ${_packageName}_INCLUDES)
134
+ elseif(DEFINED ${PACKAGE_NAME}_INCLUDES)
135
+ set(includes ${PACKAGE_NAME}_INCLUDES)
136
+ elseif(DEFINED ${_packageName}_INCLUDE_DIR)
137
+ set(includes ${_packageName}_INCLUDE_DIR)
138
+ elseif(DEFINED ${PACKAGE_NAME}_INCLUDE_DIR)
139
+ set(includes ${PACKAGE_NAME}_INCLUDE_DIR)
140
+ endif()
141
+
142
+ set(PACKAGE_INCLUDE_DIRS "${${includes}}" PARENT_SCOPE)
143
+
144
+ # Check the following variables:
145
+ # FOO_DEFINITIONS
146
+ # Foo_DEFINITIONS
147
+ set(definitions)
148
+ if(DEFINED ${_packageName}_DEFINITIONS)
149
+ set(definitions ${_packageName}_DEFINITIONS)
150
+ elseif(DEFINED ${PACKAGE_NAME}_DEFINITIONS)
151
+ set(definitions ${PACKAGE_NAME}_DEFINITIONS)
152
+ endif()
153
+
154
+ set(PACKAGE_DEFINITIONS "${${definitions}}" )
155
+
156
+ endfunction()
157
+
158
+
159
+ function(set_link_flags_var _packageName)
160
+ string(TOUPPER "${_packageName}" PACKAGE_NAME)
161
+ # Check the following variables:
162
+ # FOO_LIBRARIES
163
+ # Foo_LIBRARIES
164
+ # FOO_LIBS
165
+ # Foo_LIBS
166
+ set(libs)
167
+ if(DEFINED ${_packageName}_LIBRARIES)
168
+ set(libs ${_packageName}_LIBRARIES)
169
+ elseif(DEFINED ${PACKAGE_NAME}_LIBRARIES)
170
+ set(libs ${PACKAGE_NAME}_LIBRARIES)
171
+ elseif(DEFINED ${_packageName}_LIBS)
172
+ set(libs ${_packageName}_LIBS)
173
+ elseif(DEFINED ${PACKAGE_NAME}_LIBS)
174
+ set(libs ${PACKAGE_NAME}_LIBS)
175
+ endif()
176
+
177
+ set(PACKAGE_LIBRARIES "${${libs}}" PARENT_SCOPE )
178
+
179
+ endfunction()
180
+
181
+
182
+ find_package("${NAME}" QUIET)
183
+
184
+ set(PACKAGE_FOUND FALSE)
185
+
186
+ string(TOUPPER "${NAME}" UPPERCASE_NAME)
187
+
188
+ if(${NAME}_FOUND OR ${UPPERCASE_NAME}_FOUND)
189
+ set(PACKAGE_FOUND TRUE)
190
+
191
+ if("${MODE}" STREQUAL "EXIST")
192
+ # do nothing
193
+ elseif("${MODE}" STREQUAL "COMPILE")
194
+ set_compile_flags_var(${NAME})
195
+ elseif("${MODE}" STREQUAL "LINK")
196
+ set_link_flags_var(${NAME})
197
+ else()
198
+ message(FATAL_ERROR "Invalid mode argument ${MODE} given.")
199
+ endif()
200
+
201
+ endif()
202
+
203
+ set(PACKAGE_QUIET ${SILENT} )
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindSublimeText2.cmake ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # This file is included in CMakeSystemSpecificInformation.cmake if
6
+ # the Sublime Text 2 extra generator has been selected.
7
+
8
+ find_program(CMAKE_SUBLIMETEXT_EXECUTABLE
9
+ NAMES subl3 subl sublime_text
10
+ PATHS
11
+ "/Applications/Sublime Text.app/Contents/SharedSupport/bin"
12
+ "/Applications/Sublime Text 3.app/Contents/SharedSupport/bin"
13
+ "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin"
14
+ "$ENV{HOME}/Applications/Sublime Text.app/Contents/SharedSupport/bin"
15
+ "$ENV{HOME}/Applications/Sublime Text 3.app/Contents/SharedSupport/bin"
16
+ "$ENV{HOME}/Applications/Sublime Text 2.app/Contents/SharedSupport/bin"
17
+ "/opt/sublime_text"
18
+ "/opt/sublime_text_3"
19
+ DOC "The Sublime Text executable")
20
+
21
+ if(CMAKE_SUBLIMETEXT_EXECUTABLE)
22
+ set(CMAKE_OPEN_PROJECT_COMMAND "${CMAKE_SUBLIMETEXT_EXECUTABLE} --project <PROJECT_FILE>" )
23
+ endif()
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFortranCompilerId.F.in ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PROGRAM CMakeFortranCompilerId
2
+ #if 0
3
+ ! Identify the compiler
4
+ #endif
5
+ #if defined(_MSC_VER)
6
+ PRINT *, 'INFO:simulate[MSVC]'
7
+ # if _MSC_VER >= 1900
8
+ PRINT *, 'INFO:simulate_version[019.00]'
9
+ # elif _MSC_VER >= 1800
10
+ PRINT *, 'INFO:simulate_version[018.00]'
11
+ # elif _MSC_VER >= 1700
12
+ PRINT *, 'INFO:simulate_version[017.00]'
13
+ # elif _MSC_VER >= 1600
14
+ PRINT *, 'INFO:simulate_version[016.00]'
15
+ # elif _MSC_VER >= 1500
16
+ PRINT *, 'INFO:simulate_version[015.00]'
17
+ # elif _MSC_VER >= 1400
18
+ PRINT *, 'INFO:simulate_version[014.00]'
19
+ # elif _MSC_VER >= 1310
20
+ PRINT *, 'INFO:simulate_version[013.01]'
21
+ # else
22
+ PRINT *, 'INFO:simulate_version[013.00]'
23
+ # endif
24
+ #endif
25
+ #if defined(__INTEL_LLVM_COMPILER)
26
+ PRINT *, 'INFO:compiler[IntelLLVM]'
27
+ ! __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
28
+ ! later. Look for 6 digit vs. 8 digit version number to decide encoding.
29
+ ! VVVV is no smaller than the current year when a version is released.
30
+ # if __INTEL_LLVM_COMPILER < 1000000
31
+ # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
32
+ # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
33
+ # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
34
+ # else
35
+ # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
36
+ # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
37
+ # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
38
+ # endif
39
+ #elif defined(__INTEL_COMPILER) && __INTEL_COMPILER == 201900
40
+ PRINT *, 'INFO:compiler[IntelLLVM]'
41
+ ! ifx 2021.1 forgot to define __INTEL_LLVM_COMPILER.
42
+ ! Instead it defines __INTEL_COMPILER == 201900.
43
+ # define COMPILER_VERSION_MAJOR DEC(2021)
44
+ # define COMPILER_VERSION_MINOR DEC(1)
45
+ # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
46
+ # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
47
+ #elif defined(__INTEL_COMPILER) || defined(__ICC)
48
+ PRINT *, 'INFO:compiler[Intel]'
49
+ ! __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later.
50
+ # if __INTEL_COMPILER < 2021
51
+ # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
52
+ # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
53
+ # if defined(__INTEL_COMPILER_UPDATE)
54
+ # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
55
+ # else
56
+ # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
57
+ # endif
58
+ # else
59
+ # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
60
+ # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
61
+ ! The third version component from --version is an update index,
62
+ ! but no macro is provided for it.
63
+ # define COMPILER_VERSION_PATCH DEC(0)
64
+ # endif
65
+ # if defined(__INTEL_COMPILER_BUILD_DATE)
66
+ # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
67
+ # endif
68
+ #elif defined(__SUNPRO_F95)
69
+ PRINT *, 'INFO:compiler[SunPro]'
70
+ # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_F95>>8)
71
+ # define COMPILER_VERSION_MINOR HEX(__SUNPRO_F95>>4 & 0xF)
72
+ # define COMPILER_VERSION_PATCH HEX(__SUNPRO_F95 & 0xF)
73
+ #elif defined(__SUNPRO_F90)
74
+ PRINT *, 'INFO:compiler[SunPro]'
75
+ # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_F90>>8)
76
+ # define COMPILER_VERSION_MINOR HEX(__SUNPRO_F90>>4 & 0xF)
77
+ # define COMPILER_VERSION_PATCH HEX(__SUNPRO_F90 & 0xF)
78
+ #elif defined(_CRAYFTN)
79
+ PRINT *, 'INFO:compiler[Cray]'
80
+ # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
81
+ # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
82
+ # if defined(_RELEASE_PATCHLEVEL)
83
+ # define COMPILER_VERSION_PATCH DEC(_RELEASE_PATCHLEVEL)
84
+ # endif
85
+ #elif defined(__G95__)
86
+ PRINT *, 'INFO:compiler[G95]'
87
+ # define COMPILER_VERSION_MAJOR DEC(__G95__)
88
+ # define COMPILER_VERSION_MINOR DEC(__G95_MINOR__)
89
+ #elif defined(__PATHSCALE__)
90
+ PRINT *, 'INFO:compiler[PathScale]'
91
+ # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
92
+ # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
93
+ # if defined(__PATHCC_PATCHLEVEL__)
94
+ # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
95
+ # endif
96
+ #elif defined(__ABSOFT__)
97
+ PRINT *, 'INFO:compiler[Absoft]'
98
+ #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
99
+ PRINT *, 'INFO:compiler[LCC]'
100
+ # define COMPILER_VERSION_MAJOR DEC(1)
101
+ # define COMPILER_VERSION_MINOR DEC(__LCC__ - 100)
102
+ # if defined(__LCC_MINOR__)
103
+ # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
104
+ # endif
105
+ #elif defined(__GNUC__)
106
+ PRINT *, 'INFO:compiler[GNU]'
107
+ # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
108
+ # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
109
+ # if defined(__GNUC_PATCHLEVEL__)
110
+ # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
111
+ # endif
112
+ #elif defined(__IBMC__)
113
+ # if defined(__COMPILER_VER__)
114
+ PRINT *, 'INFO:compiler[zOS]'
115
+ # elif __IBMC__ >= 800
116
+ PRINT *, 'INFO:compiler[XL]'
117
+ # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
118
+ # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
119
+ # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
120
+ # else
121
+ PRINT *, 'INFO:compiler[VisualAge]'
122
+ # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
123
+ # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
124
+ # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
125
+ # endif
126
+ #elif defined(__NVCOMPILER) || defined(__NVCOMPILER_LLVM__)
127
+ PRINT *, 'INFO:compiler[NVHPC]'
128
+ # if defined(__NVCOMPILER_MAJOR__)
129
+ # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
130
+ # else
131
+ # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
132
+ # endif
133
+ # if defined(__NVCOMPILER_MINOR__)
134
+ # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
135
+ # else
136
+ # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
137
+ # endif
138
+ # if defined(__NVCOMPILER_PATCHLEVEL__)
139
+ # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
140
+ # elif defined(__PGIC_PATCHLEVEL__)
141
+ # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
142
+ # endif
143
+ #elif defined(__PGI)
144
+ PRINT *, 'INFO:compiler[PGI]'
145
+ # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
146
+ # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
147
+ # if defined(__PGIC_PATCHLEVEL__)
148
+ # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
149
+ # endif
150
+ #elif defined(__FLANG)
151
+ PRINT *, 'INFO:compiler[Flang]'
152
+ # define COMPILER_VERSION_MAJOR DEC(__FLANG_MAJOR__)
153
+ # define COMPILER_VERSION_MINOR DEC(__FLANG_MINOR__)
154
+ # if defined(__FLANG_PATCHLEVEL__)
155
+ # define COMPILER_VERSION_PATCH DEC(__FLANG_PATCHLEVEL__)
156
+ # endif
157
+ #elif defined(__flang__)
158
+ PRINT *, 'INFO:compiler[LLVMFlang]'
159
+ # define COMPILER_VERSION_MAJOR DEC(__flang_major__)
160
+ # define COMPILER_VERSION_MINOR DEC(__flang_minor__)
161
+ # if defined(__flang_patchlevel__)
162
+ # define COMPILER_VERSION_PATCH DEC(__flang_patchlevel__)
163
+ # endif
164
+ #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
165
+ PRINT *, 'INFO:compiler[VisualAge]'
166
+ #elif defined(__hpux) || defined(__hpux__)
167
+ PRINT *, 'INFO:compiler[HP]'
168
+ #elif defined(NAGFOR)
169
+ PRINT *, 'INFO:compiler[NAG]'
170
+ #define COMPILER_VERSION_MAJOR DEC(__NAG_COMPILER_RELEASE/10)
171
+ #define COMPILER_VERSION_MINOR DEC(__NAG_COMPILER_RELEASE % 10)
172
+ #define COMPILER_VERSION_PATCH DEC(__NAG_COMPILER_BUILD)
173
+ #elif defined(__FUJITSU)
174
+ PRINT *, 'INFO:compiler[Fujitsu]'
175
+ # if defined(__FRT_major__)
176
+ # define COMPILER_VERSION_MAJOR DEC(__FRT_major__)
177
+ # define COMPILER_VERSION_MINOR DEC(__FRT_minor__)
178
+ # define COMPILER_VERSION_PATCH DEC(__FRT_patchlevel__)
179
+ # elif defined(__FRT_version__)
180
+ PRINT *, 'INFO:compiler_version['//__FRT_version__//']'
181
+ # endif
182
+ #elif defined(__LFORTRAN__)
183
+ PRINT *, 'INFO:compiler[LFortran]'
184
+ #define COMPILER_VERSION_MAJOR DEC(__LFORTRAN_MAJOR__)
185
+ #define COMPILER_VERSION_MINOR DEC(__LFORTRAN_MINOR__)
186
+ #define COMPILER_VERSION_PATCH DEC(__LFORTRAN_PATCHLEVEL__)
187
+ #else
188
+ PRINT *, 'INFO:compiler[]'
189
+ #endif
190
+ #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
191
+ PRINT *, 'INFO:compiler_wrapper[CrayPrgEnv]'
192
+ #endif
193
+
194
+ #if 0
195
+ ! Identify the platform
196
+ #endif
197
+ #if defined(__linux) || defined(__linux__) || defined(linux)
198
+ PRINT *, 'INFO:platform[Linux]'
199
+ #elif defined(__CYGWIN__)
200
+ PRINT *, 'INFO:platform[Cygwin]'
201
+ #elif defined(__MINGW32__)
202
+ PRINT *, 'INFO:platform[MinGW]'
203
+ #elif defined(__APPLE__)
204
+ PRINT *, 'INFO:platform[Darwin]'
205
+ #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
206
+ PRINT *, 'INFO:platform[Windows]'
207
+ #elif defined(__FreeBSD__) || defined(__FreeBSD)
208
+ PRINT *, 'INFO:platform[FreeBSD]'
209
+ #elif defined(__NetBSD__) || defined(__NetBSD)
210
+ PRINT *, 'INFO:platform[NetBSD]'
211
+ #elif defined(__OpenBSD__) || defined(__OPENBSD)
212
+ PRINT *, 'INFO:platform[OpenBSD]'
213
+ #elif defined(__sun) || defined(sun)
214
+ PRINT *, 'INFO:platform[SunOS]'
215
+ #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
216
+ PRINT *, 'INFO:platform[AIX]'
217
+ #elif defined(__hpux) || defined(__hpux__)
218
+ PRINT *, 'INFO:platform[HP-UX]'
219
+ #elif defined(__HAIKU__)
220
+ PRINT *, 'INFO:platform[Haiku]'
221
+ #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
222
+ PRINT *, 'INFO:platform[BeOS]'
223
+ #elif defined(__QNX__) || defined(__QNXNTO__)
224
+ PRINT *, 'INFO:platform[QNX]'
225
+ #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
226
+ PRINT *, 'INFO:platform[Tru64]'
227
+ #elif defined(__riscos) || defined(__riscos__)
228
+ PRINT *, 'INFO:platform[RISCos]'
229
+ #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
230
+ PRINT *, 'INFO:platform[SINIX]'
231
+ #elif defined(__UNIX_SV__)
232
+ PRINT *, 'INFO:platform[UNIX_SV]'
233
+ #elif defined(__bsdos__)
234
+ PRINT *, 'INFO:platform[BSDOS]'
235
+ #elif defined(_MPRAS) || defined(MPRAS)
236
+ PRINT *, 'INFO:platform[MP-RAS]'
237
+ #elif defined(__osf) || defined(__osf__)
238
+ PRINT *, 'INFO:platform[OSF1]'
239
+ #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
240
+ PRINT *, 'INFO:platform[SCO_SV]'
241
+ #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
242
+ PRINT *, 'INFO:platform[ULTRIX]'
243
+ #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
244
+ PRINT *, 'INFO:platform[Xenix]'
245
+ #else
246
+ PRINT *, 'INFO:platform[]'
247
+ #endif
248
+ #if defined(_MSC_VER)
249
+ # if defined(_M_IA64)
250
+ PRINT *, 'INFO:arch[IA64]'
251
+ # elif defined(_M_X64) || defined(_M_AMD64)
252
+ PRINT *, 'INFO:arch[x64]'
253
+ # elif defined(_M_IX86)
254
+ PRINT *, 'INFO:arch[X86]'
255
+ # endif
256
+ #endif
257
+
258
+ #if 0
259
+ ! Encode compiler version digits
260
+ #endif
261
+ #define DEC_8(n) (((n) / 10000000) % 10)
262
+ #define DEC_7(n) (((n) / 1000000) % 10)
263
+ #define DEC_6(n) (((n) / 100000) % 10)
264
+ #define DEC_5(n) (((n) / 10000) % 10)
265
+ #define DEC_4(n) (((n) / 1000) % 10)
266
+ #define DEC_3(n) (((n) / 100) % 10)
267
+ #define DEC_2(n) (((n) / 10) % 10)
268
+ #define DEC_1(n) (((n) ) % 10)
269
+ #define HEX_8(n) ((n)>>28 & 0xF)
270
+ #define HEX_7(n) ((n)>>24 & 0xF)
271
+ #define HEX_6(n) ((n)>>20 & 0xF)
272
+ #define HEX_5(n) ((n)>>16 & 0xF)
273
+ #define HEX_4(n) ((n)>>12 & 0xF)
274
+ #define HEX_3(n) ((n)>>8 & 0xF)
275
+ #define HEX_2(n) ((n)>>4 & 0xF)
276
+ #define HEX_1(n) ((n) & 0xF)
277
+ @CMAKE_Fortran_COMPILER_ID_VERSION_INFO@
278
+
279
+ END
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFortranInformation.cmake ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ include(CMakeLanguageInformation)
6
+
7
+ # This file sets the basic flags for the Fortran language in CMake.
8
+ # It also loads the available platform file for the system-compiler
9
+ # if it exists.
10
+
11
+ set(_INCLUDED_FILE 0)
12
+
13
+ # Load compiler-specific information.
14
+ if(CMAKE_Fortran_COMPILER_ID)
15
+ include(Compiler/${CMAKE_Fortran_COMPILER_ID}-Fortran OPTIONAL)
16
+ endif()
17
+
18
+ set(CMAKE_BASE_NAME)
19
+ get_filename_component(CMAKE_BASE_NAME "${CMAKE_Fortran_COMPILER}" NAME_WE)
20
+ # since the gnu compiler has several names force g++
21
+ if(CMAKE_COMPILER_IS_GNUG77)
22
+ set(CMAKE_BASE_NAME g77)
23
+ endif()
24
+ if(CMAKE_Fortran_COMPILER_ID)
25
+ include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_Fortran_COMPILER_ID}-Fortran OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
26
+ endif()
27
+ if (NOT _INCLUDED_FILE)
28
+ include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL
29
+ RESULT_VARIABLE _INCLUDED_FILE)
30
+ endif ()
31
+
32
+ # load any compiler-wrapper specific information
33
+ if (CMAKE_Fortran_COMPILER_WRAPPER)
34
+ __cmake_include_compiler_wrapper(Fortran)
35
+ endif ()
36
+
37
+ # We specify the compiler information in the system file for some
38
+ # platforms, but this language may not have been enabled when the file
39
+ # was first included. Include it again to get the language info.
40
+ # Remove this when all compiler info is removed from system files.
41
+ if (NOT _INCLUDED_FILE)
42
+ include(Platform/${CMAKE_SYSTEM_NAME} OPTIONAL)
43
+ endif ()
44
+
45
+ if(CMAKE_Fortran_SIZEOF_DATA_PTR)
46
+ foreach(f IN LISTS CMAKE_Fortran_ABI_FILES)
47
+ include(${f})
48
+ endforeach()
49
+ unset(CMAKE_Fortran_ABI_FILES)
50
+ endif()
51
+
52
+ # This should be included before the _INIT variables are
53
+ # used to initialize the cache. Since the rule variables
54
+ # have if blocks on them, users can still define them here.
55
+ # But, it should still be after the platform file so changes can
56
+ # be made to those values.
57
+
58
+ if(CMAKE_USER_MAKE_RULES_OVERRIDE)
59
+ # Save the full path of the file so try_compile can use it.
60
+ include(${CMAKE_USER_MAKE_RULES_OVERRIDE} RESULT_VARIABLE _override)
61
+ set(CMAKE_USER_MAKE_RULES_OVERRIDE "${_override}")
62
+ endif()
63
+
64
+ if(CMAKE_USER_MAKE_RULES_OVERRIDE_Fortran)
65
+ # Save the full path of the file so try_compile can use it.
66
+ include(${CMAKE_USER_MAKE_RULES_OVERRIDE_Fortran} RESULT_VARIABLE _override)
67
+ set(CMAKE_USER_MAKE_RULES_OVERRIDE_Fortran "${_override}")
68
+ endif()
69
+
70
+ set(CMAKE_VERBOSE_MAKEFILE FALSE CACHE BOOL "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo.")
71
+
72
+ set(CMAKE_Fortran_FLAGS_INIT "$ENV{FFLAGS} ${CMAKE_Fortran_FLAGS_INIT}")
73
+
74
+ cmake_initialize_per_config_variable(CMAKE_Fortran_FLAGS "Flags used by the Fortran compiler")
75
+
76
+ if(NOT CMAKE_Fortran_COMPILER_LAUNCHER AND DEFINED ENV{CMAKE_Fortran_COMPILER_LAUNCHER})
77
+ set(CMAKE_Fortran_COMPILER_LAUNCHER "$ENV{CMAKE_Fortran_COMPILER_LAUNCHER}"
78
+ CACHE STRING "Compiler launcher for Fortran.")
79
+ endif()
80
+
81
+ include(CMakeCommonLanguageInclude)
82
+ _cmake_common_language_platform_flags(Fortran)
83
+
84
+ # now define the following rule variables
85
+ # CMAKE_Fortran_CREATE_SHARED_LIBRARY
86
+ # CMAKE_Fortran_CREATE_SHARED_MODULE
87
+ # CMAKE_Fortran_COMPILE_OBJECT
88
+ # CMAKE_Fortran_LINK_EXECUTABLE
89
+
90
+ # create a Fortran shared library
91
+ if(NOT CMAKE_Fortran_CREATE_SHARED_LIBRARY)
92
+ set(CMAKE_Fortran_CREATE_SHARED_LIBRARY
93
+ "<CMAKE_Fortran_COMPILER> <CMAKE_SHARED_LIBRARY_Fortran_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS> <SONAME_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
94
+ endif()
95
+
96
+ # create a Fortran shared module just copy the shared library rule
97
+ if(NOT CMAKE_Fortran_CREATE_SHARED_MODULE)
98
+ set(CMAKE_Fortran_CREATE_SHARED_MODULE ${CMAKE_Fortran_CREATE_SHARED_LIBRARY})
99
+ endif()
100
+
101
+ # Create a static archive incrementally for large object file counts.
102
+ # If CMAKE_Fortran_CREATE_STATIC_LIBRARY is set it will override these.
103
+ if(NOT DEFINED CMAKE_Fortran_ARCHIVE_CREATE)
104
+ set(CMAKE_Fortran_ARCHIVE_CREATE "<CMAKE_AR> qc <TARGET> <LINK_FLAGS> <OBJECTS>")
105
+ endif()
106
+ if(NOT DEFINED CMAKE_Fortran_ARCHIVE_APPEND)
107
+ set(CMAKE_Fortran_ARCHIVE_APPEND "<CMAKE_AR> q <TARGET> <LINK_FLAGS> <OBJECTS>")
108
+ endif()
109
+ if(NOT DEFINED CMAKE_Fortran_ARCHIVE_FINISH)
110
+ set(CMAKE_Fortran_ARCHIVE_FINISH "<CMAKE_RANLIB> <TARGET>")
111
+ endif()
112
+
113
+ # compile a Fortran file into an object file
114
+ # (put -o after -c to workaround bug in at least one mpif77 wrapper)
115
+ if(NOT CMAKE_Fortran_COMPILE_OBJECT)
116
+ set(CMAKE_Fortran_COMPILE_OBJECT
117
+ "<CMAKE_Fortran_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -c <SOURCE> -o <OBJECT>")
118
+ endif()
119
+
120
+ # link a fortran program
121
+ if(NOT CMAKE_Fortran_LINK_EXECUTABLE)
122
+ set(CMAKE_Fortran_LINK_EXECUTABLE
123
+ "<CMAKE_Fortran_COMPILER> <CMAKE_Fortran_LINK_FLAGS> <LINK_FLAGS> <FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
124
+ endif()
125
+
126
+ if(CMAKE_Fortran_STANDARD_LIBRARIES_INIT)
127
+ set(CMAKE_Fortran_STANDARD_LIBRARIES "${CMAKE_Fortran_STANDARD_LIBRARIES_INIT}"
128
+ CACHE STRING "Libraries linked by default with all Fortran applications.")
129
+ mark_as_advanced(CMAKE_Fortran_STANDARD_LIBRARIES)
130
+ endif()
131
+
132
+ set(CMAKE_Fortran_USE_LINKER_INFORMATION TRUE)
133
+
134
+ # set this variable so we can avoid loading this more than once.
135
+ set(CMAKE_Fortran_INFORMATION_LOADED 1)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeHIPCompilerABI.hip ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #if !defined(__HIP__) && !defined(__NVCC__)
2
+ # error "A C or C++ compiler has been selected for HIP"
3
+ #endif
4
+
5
+ #include "CMakeCompilerABI.h"
6
+
7
+ #if defined(__NVCC__)
8
+ # include "CMakeCompilerCUDAArch.h"
9
+ #endif
10
+
11
+ int main(int argc, char* argv[])
12
+ {
13
+ int require = 0;
14
+ require += info_sizeof_dptr[argc];
15
+ #if defined(ABI_ID)
16
+ require += info_abi[argc];
17
+ #endif
18
+ static_cast<void>(argv);
19
+
20
+ #if defined(__NVCC__)
21
+ if (!cmakeCompilerCUDAArch()) {
22
+ // Convince the compiler that the non-zero return value depends
23
+ // on the info strings so they are not optimized out.
24
+ return require ? -1 : 1;
25
+ }
26
+ return 0;
27
+ #else
28
+ return require;
29
+ #endif
30
+ }
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeISPCCompilerId.ispc.in ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ export void ispcCompilerId() {
3
+
4
+ // Identify the compiler
5
+ #if defined(ISPC)
6
+ print("INFO:compiler[Intel]");
7
+ #endif
8
+
9
+ // Identify the platform
10
+ #if defined(__linux) || defined(__linux__) || defined(linux)
11
+ print("INFO:platform[Linux]");
12
+ #elif defined(__CYGWIN__)
13
+ print("INFO:platform[Cygwin]");
14
+ #elif defined(__MINGW32__)
15
+ print("INFO:platform[MinGW]");
16
+ #elif defined(__APPLE__)
17
+ print("INFO:platform[Darwin]");
18
+ #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
19
+ print("INFO:platform[Windows]");
20
+ #elif defined(__FreeBSD__) || defined(__FreeBSD)
21
+ print("INFO:platform[FreeBSD]");
22
+ #elif defined(__NetBSD__) || defined(__NetBSD)
23
+ print("INFO:platform[NetBSD]");
24
+ #elif defined(__OpenBSD__) || defined(__OPENBSD)
25
+ print("INFO:platform[OpenBSD]");
26
+ #elif defined(__sun) || defined(sun)
27
+ print("INFO:platform[SunOS]");
28
+ #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
29
+ print("INFO:platform[AIX]");
30
+ #elif defined(__hpux) || defined(__hpux__)
31
+ print("INFO:platform[HP-UX]");
32
+ #elif defined(__HAIKU__)
33
+ print("INFO:platform[Haiku]");
34
+ #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
35
+ print("INFO:platform[BeOS]");
36
+ #elif defined(__QNX__) || defined(__QNXNTO__)
37
+ print("INFO:platform[QNX]");
38
+ #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
39
+ print("INFO:platform[Tru64]");
40
+ #elif defined(__riscos) || defined(__riscos__)
41
+ print("INFO:platform[RISCos]");
42
+ #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
43
+ print("INFO:platform[SINIX]");
44
+ #elif defined(__UNIX_SV__)
45
+ print("INFO:platform[UNIX_SV]");
46
+ #elif defined(__bsdos__)
47
+ print("INFO:platform[BSDOS]");
48
+ #elif defined(_MPRAS) || defined(MPRAS)
49
+ print("INFO:platform[MP-RAS]");
50
+ #elif defined(__osf) || defined(__osf__)
51
+ print("INFO:platform[OSF1]");
52
+ #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
53
+ print("INFO:platform[SCO_SV]");
54
+ #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
55
+ print("INFO:platform[ULTRIX]");
56
+ #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
57
+ print("INFO:platform[Xenix]");
58
+ #else
59
+ print("INFO:platform[]");
60
+ #endif
61
+
62
+ }
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeMSYSFindMake.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ find_program(CMAKE_MAKE_PROGRAM make
6
+ REGISTRY_VIEW 32
7
+ PATHS
8
+ # Typical install path for 32-bit MSYS2 (https://repo.msys2.org/distrib/msys2-i686-latest.sfx.exe)
9
+ "C:/msys32/usr"
10
+ # Typical install path for MINGW32 (https://sourceforge.net/projects/mingw)
11
+ "C:/mingw/msys"
12
+ # Git for Windows 32-bit (https://gitforwindows.org/)
13
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GitForWindows;InstallPath]/usr")
14
+
15
+ mark_as_advanced(CMAKE_MAKE_PROGRAM)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeNMakeFindMake.cmake ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ set (CMAKE_MAKE_PROGRAM "nmake" CACHE STRING
6
+ "Program used to build from makefiles.")
7
+ mark_as_advanced(CMAKE_MAKE_PROGRAM)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakePackageConfigHelpers.cmake ADDED
@@ -0,0 +1,690 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ CMakePackageConfigHelpers
6
+ -------------------------
7
+
8
+ Helper functions for creating config files that can be included by other
9
+ projects to find and use a package.
10
+
11
+ Generating a Package Configuration File
12
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
+
14
+ .. command:: configure_package_config_file
15
+
16
+ Create a config file for a project::
17
+
18
+ configure_package_config_file(<input> <output>
19
+ INSTALL_DESTINATION <path>
20
+ [PATH_VARS <var1> <var2> ... <varN>]
21
+ [NO_SET_AND_CHECK_MACRO]
22
+ [NO_CHECK_REQUIRED_COMPONENTS_MACRO]
23
+ [INSTALL_PREFIX <path>]
24
+ )
25
+
26
+ ``configure_package_config_file()`` should be used instead of the plain
27
+ :command:`configure_file()` command when creating the ``<PackageName>Config.cmake``
28
+ or ``<PackageName>-config.cmake`` file for installing a project or library.
29
+ It helps make the resulting package relocatable by avoiding hardcoded paths
30
+ in the installed ``<PackageName>Config.cmake`` file.
31
+
32
+ In a ``FooConfig.cmake`` file there may be code like this to make the install
33
+ destinations known to the using project:
34
+
35
+ .. code-block:: cmake
36
+
37
+ set(FOO_INCLUDE_DIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@" )
38
+ set(FOO_DATA_DIR "@CMAKE_INSTALL_PREFIX@/@RELATIVE_DATA_INSTALL_DIR@" )
39
+ set(FOO_ICONS_DIR "@CMAKE_INSTALL_PREFIX@/share/icons" )
40
+ #...logic to determine installedPrefix from the own location...
41
+ set(FOO_CONFIG_DIR "${installedPrefix}/@CONFIG_INSTALL_DIR@" )
42
+
43
+ All four options shown above are not sufficient The first three hardcode the
44
+ absolute directory locations. The fourth case works only if the logic to
45
+ determine the ``installedPrefix`` is correct, and if ``CONFIG_INSTALL_DIR``
46
+ contains a relative path, which in general cannot be guaranteed. This has the
47
+ effect that the resulting ``FooConfig.cmake`` file would work poorly under
48
+ Windows and macOS, where users are used to choosing the install location of a
49
+ binary package at install time, independent from how
50
+ :variable:`CMAKE_INSTALL_PREFIX` was set at build/cmake time.
51
+
52
+ Using ``configure_package_config_file()`` helps. If used correctly, it makes
53
+ the resulting ``FooConfig.cmake`` file relocatable. Usage:
54
+
55
+ 1. Write a ``FooConfig.cmake.in`` file as you are used to.
56
+ 2. Insert a line at the top containing only the string ``@PACKAGE_INIT@``.
57
+ 3. Instead of ``set(FOO_DIR "@SOME_INSTALL_DIR@")``, use
58
+ ``set(FOO_DIR "@PACKAGE_SOME_INSTALL_DIR@")`` (this must be after the
59
+ ``@PACKAGE_INIT@`` line).
60
+ 4. Instead of using the normal :command:`configure_file()` command, use
61
+ ``configure_package_config_file()``.
62
+
63
+ The ``<input>`` and ``<output>`` arguments are the input and output file, the
64
+ same way as in :command:`configure_file()`.
65
+
66
+ The ``<path>`` given to ``INSTALL_DESTINATION`` must be the destination where
67
+ the ``FooConfig.cmake`` file will be installed to. This path can either be
68
+ absolute, or relative to the ``INSTALL_PREFIX`` path.
69
+
70
+ The variables ``<var1>`` to ``<varN>`` given as ``PATH_VARS`` are the
71
+ variables which contain install destinations. For each of them, the macro will
72
+ create a helper variable ``PACKAGE_<var...>``. These helper variables must be
73
+ used in the ``FooConfig.cmake.in`` file for setting the installed location.
74
+ They are calculated by ``configure_package_config_file()`` so that they are
75
+ always relative to the installed location of the package. This works both for
76
+ relative and also for absolute locations. For absolute locations, it works
77
+ only if the absolute location is a subdirectory of ``INSTALL_PREFIX``.
78
+
79
+ .. versionadded:: 3.30
80
+ The variable ``PACKAGE_PREFIX_DIR`` will always be defined after the
81
+ ``@PACKAGE_INIT@`` line. It will hold the value of the base install
82
+ location. In general, variables defined via the ``PATH_VARS`` mechanism
83
+ should be used instead, but ``PACKAGE_PREFIX_DIR`` can be used for those
84
+ cases not easily handled by ``PATH_VARS``, such as for files installed
85
+ directly to the base install location rather than a subdirectory of it.
86
+
87
+ .. note::
88
+ When consumers of the generated file use CMake 3.29 or older, the value
89
+ of ``PACKAGE_PREFIX_DIR`` can be changed by a call to
90
+ :command:`find_dependency` or :command:`find_package`.
91
+ If a project relies on ``PACKAGE_PREFIX_DIR``, it is the project's
92
+ responsibility to ensure that the value of ``PACKAGE_PREFIX_DIR`` is
93
+ preserved across any such calls, or any other calls which might include
94
+ another file generated by ``configure_package_config_file()``.
95
+
96
+ .. versionadded:: 3.1
97
+ If the ``INSTALL_PREFIX`` argument is passed, this is used as the base path to
98
+ calculate all the relative paths. The ``<path>`` argument must be an absolute
99
+ path. If this argument is not passed, the :variable:`CMAKE_INSTALL_PREFIX`
100
+ variable will be used instead. The default value is good when generating a
101
+ ``FooConfig.cmake`` file to use your package from the install tree. When
102
+ generating a ``FooConfig.cmake`` file to use your package from the build tree,
103
+ this option should be used.
104
+
105
+ By default, ``configure_package_config_file()`` also generates two helper
106
+ macros, ``set_and_check()`` and ``check_required_components()``, into the
107
+ ``FooConfig.cmake`` file.
108
+
109
+ ``set_and_check()`` should be used instead of the normal :command:`set` command
110
+ for setting directories and file locations. In addition to setting the
111
+ variable, it also checks that the referenced file or directory actually exists
112
+ and fails with a fatal error if it doesn't. This ensures that the generated
113
+ ``FooConfig.cmake`` file does not contain wrong references.
114
+ Add the ``NO_SET_AND_CHECK_MACRO`` option to prevent the generation of the
115
+ ``set_and_check()`` macro in the ``FooConfig.cmake`` file.
116
+
117
+ ``check_required_components(<PackageName>)`` should be called at the end of
118
+ the ``FooConfig.cmake`` file. This macro checks whether all requested,
119
+ non-optional components have been found, and if this is not the case, it sets
120
+ the ``Foo_FOUND`` variable to ``FALSE`` so that the package is considered to
121
+ be not found. It does that by testing the ``Foo_<Component>_FOUND``
122
+ variables for all requested required components. This macro should be
123
+ called even if the package doesn't provide any components to make sure
124
+ users are not specifying components erroneously. Add the
125
+ ``NO_CHECK_REQUIRED_COMPONENTS_MACRO`` option to prevent the generation of the
126
+ ``check_required_components()`` macro in the ``FooConfig.cmake`` file.
127
+
128
+ See also :ref:`CMakePackageConfigHelpers Examples`.
129
+
130
+ Generating a Package Version File
131
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
+
133
+ .. command:: write_basic_package_version_file
134
+
135
+ Create a version file for a project::
136
+
137
+ write_basic_package_version_file(<filename>
138
+ [VERSION <major.minor.patch>]
139
+ COMPATIBILITY <AnyNewerVersion|SameMajorVersion|SameMinorVersion|ExactVersion>
140
+ [ARCH_INDEPENDENT] )
141
+
142
+
143
+ Writes a file for use as a ``<PackageName>ConfigVersion.cmake`` file to
144
+ ``<filename>``. See the documentation of :command:`find_package()` for
145
+ details on such files.
146
+
147
+ ``<filename>`` is the output filename, which should be in the build tree.
148
+ ``<major.minor.patch>`` is the version number of the project to be installed.
149
+
150
+ If no ``VERSION`` is given, the :variable:`PROJECT_VERSION` variable is used.
151
+ If this hasn't been set, it errors out.
152
+
153
+ The ``COMPATIBILITY`` mode ``AnyNewerVersion`` means that the installed
154
+ package version will be considered compatible if it is newer or exactly the
155
+ same as the requested version. This mode should be used for packages which
156
+ are fully backward compatible, also across major versions.
157
+ If ``SameMajorVersion`` is used instead, then the behavior differs from
158
+ ``AnyNewerVersion`` in that the major version number must be the same as
159
+ requested, e.g. version 2.0 will not be considered compatible if 1.0 is
160
+ requested. This mode should be used for packages which guarantee backward
161
+ compatibility within the same major version.
162
+ If ``SameMinorVersion`` is used, the behavior is the same as
163
+ ``SameMajorVersion``, but both major and minor version must be the same as
164
+ requested, e.g version 0.2 will not be compatible if 0.1 is requested.
165
+ If ``ExactVersion`` is used, then the package is only considered compatible if
166
+ the requested version matches exactly its own version number (not considering
167
+ the tweak version). For example, version 1.2.3 of a package is only
168
+ considered compatible to requested version 1.2.3. This mode is for packages
169
+ without compatibility guarantees.
170
+ If your project has more elaborate version matching rules, you will need to
171
+ write your own custom ``<PackageName>ConfigVersion.cmake`` file instead of
172
+ using this macro.
173
+
174
+ .. versionadded:: 3.11
175
+ The ``SameMinorVersion`` compatibility mode.
176
+
177
+ .. versionadded:: 3.14
178
+ If ``ARCH_INDEPENDENT`` is given, the installed package version will be
179
+ considered compatible even if it was built for a different architecture than
180
+ the requested architecture. Otherwise, an architecture check will be performed,
181
+ and the package will be considered compatible only if the architecture matches
182
+ exactly. For example, if the package is built for a 32-bit architecture, the
183
+ package is only considered compatible if it is used on a 32-bit architecture,
184
+ unless ``ARCH_INDEPENDENT`` is given, in which case the package is considered
185
+ compatible on any architecture.
186
+
187
+ .. note:: ``ARCH_INDEPENDENT`` is intended for header-only libraries or
188
+ similar packages with no binaries.
189
+
190
+ .. versionadded:: 3.19
191
+ The version file generated by ``AnyNewerVersion``, ``SameMajorVersion`` and
192
+ ``SameMinorVersion`` arguments of ``COMPATIBILITY`` handle the version range,
193
+ if one is specified (see :command:`find_package` command for the details).
194
+ ``ExactVersion`` mode is incompatible with version ranges and will display an
195
+ author warning if one is specified.
196
+
197
+ Internally, this macro executes :command:`configure_file()` to create the
198
+ resulting version file. Depending on the ``COMPATIBILITY``, the corresponding
199
+ ``BasicConfigVersion-<COMPATIBILITY>.cmake.in`` file is used.
200
+ Please note that these files are internal to CMake and you should not call
201
+ :command:`configure_file()` on them yourself, but they can be used as a starting
202
+ point to create more sophisticated custom ``<PackageName>ConfigVersion.cmake``
203
+ files.
204
+
205
+ Generating an Apple Platform Selection File
206
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207
+
208
+ .. command:: generate_apple_platform_selection_file
209
+
210
+ .. versionadded:: 3.29
211
+
212
+ Create an Apple platform selection file:
213
+
214
+ .. code-block:: cmake
215
+
216
+ generate_apple_platform_selection_file(<filename>
217
+ INSTALL_DESTINATION <path>
218
+ [INSTALL_PREFIX <path>]
219
+ [MACOS_INCLUDE_FILE <file>]
220
+ [IOS_INCLUDE_FILE <file>]
221
+ [IOS_SIMULATOR_INCLUDE_FILE <file>]
222
+ [IOS_CATALYST_INCLUDE_FILE <file>]
223
+ [TVOS_INCLUDE_FILE <file>]
224
+ [TVOS_SIMULATOR_INCLUDE_FILE <file>]
225
+ [WATCHOS_INCLUDE_FILE <file>]
226
+ [WATCHOS_SIMULATOR_INCLUDE_FILE <file>]
227
+ [VISIONOS_INCLUDE_FILE <file>]
228
+ [VISIONOS_SIMULATOR_INCLUDE_FILE <file>]
229
+ [ERROR_VARIABLE <variable>]
230
+ )
231
+
232
+ Write a file that includes an Apple-platform-specific ``.cmake`` file,
233
+ e.g., for use as ``<PackageName>Config.cmake``. This can be used in
234
+ conjunction with the ``XCFRAMEWORK_LOCATION`` argument of
235
+ :command:`export(SETUP)` to export packages in a way that a project
236
+ built for any Apple platform can use them.
237
+
238
+ ``INSTALL_DESTINATION <path>``
239
+ Path to which the generated file will be installed by the caller, e.g.,
240
+ via :command:`install(FILES)`. The path may be either relative to the
241
+ ``INSTALL_PREFIX`` or absolute.
242
+
243
+ ``INSTALL_PREFIX <path>``
244
+ Path prefix to which the package will be installed by the caller.
245
+ The ``<path>`` argument must be an absolute path. If this argument
246
+ is not passed, the :variable:`CMAKE_INSTALL_PREFIX` variable will be
247
+ used instead.
248
+
249
+ ``MACOS_INCLUDE_FILE <file>``
250
+ File to include if the platform is macOS.
251
+
252
+ ``IOS_INCLUDE_FILE <file>``
253
+ File to include if the platform is iOS.
254
+
255
+ ``IOS_SIMULATOR_INCLUDE_FILE <file>``
256
+ File to include if the platform is iOS Simulator.
257
+
258
+ ``IOS_CATALYST_INCLUDE_FILE <file>``
259
+ .. versionadded:: 3.31
260
+
261
+ File to include if the platform is iOS Catalyst.
262
+
263
+ ``TVOS_INCLUDE_FILE <file>``
264
+ File to include if the platform is tvOS.
265
+
266
+ ``TVOS_SIMULATOR_INCLUDE_FILE <file>``
267
+ File to include if the platform is tvOS Simulator.
268
+
269
+ ``WATCHOS_INCLUDE_FILE <file>``
270
+ File to include if the platform is watchOS.
271
+
272
+ ``WATCHOS_SIMULATOR_INCLUDE_FILE <file>``
273
+ File to include if the platform is watchOS Simulator.
274
+
275
+ ``VISIONOS_INCLUDE_FILE <file>``
276
+ File to include if the platform is visionOS.
277
+
278
+ ``VISIONOS_SIMULATOR_INCLUDE_FILE <file>``
279
+ File to include if the platform is visionOS Simulator.
280
+
281
+ ``ERROR_VARIABLE <variable>``
282
+ If the consuming project is built for an unsupported platform,
283
+ set ``<variable>`` to an error message. The includer may use this
284
+ information to pretend the package was not found. If this option
285
+ is not given, the default behavior is to issue a fatal error.
286
+
287
+ If any of the optional include files is not specified, and the consuming
288
+ project is built for its corresponding platform, the generated file will
289
+ consider the platform to be unsupported. The behavior is determined
290
+ by the ``ERROR_VARIABLE`` option.
291
+
292
+ Generating an Apple Architecture Selection File
293
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
294
+
295
+ .. command:: generate_apple_architecture_selection_file
296
+
297
+ .. versionadded:: 3.29
298
+
299
+ Create an Apple architecture selection file:
300
+
301
+ .. code-block:: cmake
302
+
303
+ generate_apple_architecture_selection_file(<filename>
304
+ INSTALL_DESTINATION <path>
305
+ [INSTALL_PREFIX <path>]
306
+ [SINGLE_ARCHITECTURES <arch>...
307
+ SINGLE_ARCHITECTURE_INCLUDE_FILES <file>...]
308
+ [UNIVERSAL_ARCHITECTURES <arch>...
309
+ UNIVERSAL_INCLUDE_FILE <file>]
310
+ [ERROR_VARIABLE <variable>]
311
+ )
312
+
313
+ Write a file that includes an Apple-architecture-specific ``.cmake`` file
314
+ based on :variable:`CMAKE_OSX_ARCHITECTURES`, e.g., for inclusion from an
315
+ Apple-specific ``<PackageName>Config.cmake`` file.
316
+
317
+ ``INSTALL_DESTINATION <path>``
318
+ Path to which the generated file will be installed by the caller, e.g.,
319
+ via :command:`install(FILES)`. The path may be either relative to the
320
+ ``INSTALL_PREFIX`` or absolute.
321
+
322
+ ``INSTALL_PREFIX <path>``
323
+ Path prefix to which the package will be installed by the caller.
324
+ The ``<path>`` argument must be an absolute path. If this argument
325
+ is not passed, the :variable:`CMAKE_INSTALL_PREFIX` variable will be
326
+ used instead.
327
+
328
+ ``SINGLE_ARCHITECTURES <arch>...``
329
+ Architectures provided by entries of ``SINGLE_ARCHITECTURE_INCLUDE_FILES``.
330
+
331
+ ``SINGLE_ARCHITECTURE_INCLUDE_FILES <file>...``
332
+ Architecture-specific files. One of them will be loaded
333
+ when :variable:`CMAKE_OSX_ARCHITECTURES` contains a single
334
+ architecture matching the corresponding entry of
335
+ ``SINGLE_ARCHITECTURES``.
336
+
337
+ ``UNIVERSAL_ARCHITECTURES <arch>...``
338
+ Architectures provided by the ``UNIVERSAL_INCLUDE_FILE``.
339
+
340
+ The list may include ``$(ARCHS_STANDARD)`` to support consumption using
341
+ the :generator:`Xcode` generator, but the architectures should always
342
+ be listed individually too.
343
+
344
+ ``UNIVERSAL_INCLUDE_FILE <file>``
345
+ A file to load when :variable:`CMAKE_OSX_ARCHITECTURES` contains
346
+ a (non-strict) subset of the ``UNIVERSAL_ARCHITECTURES`` and
347
+ does not match any one of the ``SINGLE_ARCHITECTURES``.
348
+
349
+ ``ERROR_VARIABLE <variable>``
350
+ If the consuming project is built for an unsupported architecture,
351
+ set ``<variable>`` to an error message. The includer may use this
352
+ information to pretend the package was not found. If this option
353
+ is not given, the default behavior is to issue a fatal error.
354
+
355
+ .. _`CMakePackageConfigHelpers Examples`:
356
+
357
+ Example Generating Package Files
358
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
359
+
360
+ Example using both the :command:`configure_package_config_file` and
361
+ :command:`write_basic_package_version_file()` commands:
362
+
363
+ .. code-block:: cmake
364
+ :caption: ``CMakeLists.txt``
365
+
366
+ include(GNUInstallDirs)
367
+ set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR}/Foo
368
+ CACHE PATH "Location of header files" )
369
+ set(SYSCONFIG_INSTALL_DIR ${CMAKE_INSTALL_SYSCONFDIR}/foo
370
+ CACHE PATH "Location of configuration files" )
371
+ #...
372
+ include(CMakePackageConfigHelpers)
373
+ configure_package_config_file(FooConfig.cmake.in
374
+ ${CMAKE_CURRENT_BINARY_DIR}/FooConfig.cmake
375
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Foo
376
+ PATH_VARS INCLUDE_INSTALL_DIR SYSCONFIG_INSTALL_DIR)
377
+ write_basic_package_version_file(
378
+ ${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake
379
+ VERSION 1.2.3
380
+ COMPATIBILITY SameMajorVersion )
381
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FooConfig.cmake
382
+ ${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake
383
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Foo )
384
+
385
+ .. code-block:: cmake
386
+ :caption: ``FooConfig.cmake.in``
387
+ :force:
388
+
389
+ set(FOO_VERSION x.y.z)
390
+ ...
391
+ @PACKAGE_INIT@
392
+ ...
393
+ set_and_check(FOO_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
394
+ set_and_check(FOO_SYSCONFIG_DIR "@PACKAGE_SYSCONFIG_INSTALL_DIR@")
395
+
396
+ check_required_components(Foo)
397
+ #]=======================================================================]
398
+
399
+ include(WriteBasicConfigVersionFile)
400
+
401
+ macro(WRITE_BASIC_PACKAGE_VERSION_FILE)
402
+ write_basic_config_version_file(${ARGN})
403
+ endmacro()
404
+
405
+ function(CONFIGURE_PACKAGE_CONFIG_FILE _inputFile _outputFile)
406
+ set(options NO_SET_AND_CHECK_MACRO NO_CHECK_REQUIRED_COMPONENTS_MACRO)
407
+ set(oneValueArgs INSTALL_DESTINATION INSTALL_PREFIX)
408
+ set(multiValueArgs PATH_VARS )
409
+
410
+ cmake_parse_arguments(CCF "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
411
+
412
+ if(CCF_UNPARSED_ARGUMENTS)
413
+ message(FATAL_ERROR "Unknown keywords given to CONFIGURE_PACKAGE_CONFIG_FILE(): \"${CCF_UNPARSED_ARGUMENTS}\"")
414
+ endif()
415
+
416
+ if(NOT CCF_INSTALL_DESTINATION)
417
+ message(FATAL_ERROR "No INSTALL_DESTINATION given to CONFIGURE_PACKAGE_CONFIG_FILE()")
418
+ endif()
419
+
420
+ if(DEFINED CCF_INSTALL_PREFIX)
421
+ if(IS_ABSOLUTE "${CCF_INSTALL_PREFIX}")
422
+ set(installPrefix "${CCF_INSTALL_PREFIX}")
423
+ else()
424
+ message(FATAL_ERROR "INSTALL_PREFIX must be an absolute path")
425
+ endif()
426
+ elseif(IS_ABSOLUTE "${CMAKE_INSTALL_PREFIX}")
427
+ set(installPrefix "${CMAKE_INSTALL_PREFIX}")
428
+ else()
429
+ get_filename_component(installPrefix "${CMAKE_INSTALL_PREFIX}" ABSOLUTE)
430
+ endif()
431
+
432
+ if(IS_ABSOLUTE "${CCF_INSTALL_DESTINATION}")
433
+ set(absInstallDir "${CCF_INSTALL_DESTINATION}")
434
+ else()
435
+ set(absInstallDir "${installPrefix}/${CCF_INSTALL_DESTINATION}")
436
+ endif()
437
+
438
+ file(RELATIVE_PATH PACKAGE_RELATIVE_PATH "${absInstallDir}" "${installPrefix}" )
439
+
440
+ foreach(var ${CCF_PATH_VARS})
441
+ if(NOT DEFINED ${var})
442
+ message(FATAL_ERROR "Variable ${var} does not exist")
443
+ else()
444
+ if(IS_ABSOLUTE "${${var}}")
445
+ string(REPLACE "${installPrefix}" "\${PACKAGE_PREFIX_DIR}"
446
+ PACKAGE_${var} "${${var}}")
447
+ else()
448
+ set(PACKAGE_${var} "\${PACKAGE_PREFIX_DIR}/${${var}}")
449
+ endif()
450
+ endif()
451
+ endforeach()
452
+
453
+ get_filename_component(inputFileName "${_inputFile}" NAME)
454
+
455
+ set(PACKAGE_INIT "
456
+ ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
457
+ ####### Any changes to this file will be overwritten by the next CMake run ####
458
+ ####### The input file was ${inputFileName} ########
459
+
460
+ get_filename_component(PACKAGE_PREFIX_DIR \"\${CMAKE_CURRENT_LIST_DIR}/${PACKAGE_RELATIVE_PATH}\" ABSOLUTE)
461
+ ")
462
+
463
+ if("${absInstallDir}" MATCHES "^(/usr)?/lib(64)?/.+")
464
+ # Handle "/usr move" symlinks created by some Linux distros.
465
+ string(APPEND PACKAGE_INIT "
466
+ # Use original install prefix when loaded through a \"/usr move\"
467
+ # cross-prefix symbolic link such as /lib -> /usr/lib.
468
+ get_filename_component(_realCurr \"\${CMAKE_CURRENT_LIST_DIR}\" REALPATH)
469
+ get_filename_component(_realOrig \"${absInstallDir}\" REALPATH)
470
+ if(_realCurr STREQUAL _realOrig)
471
+ set(PACKAGE_PREFIX_DIR \"${installPrefix}\")
472
+ endif()
473
+ unset(_realOrig)
474
+ unset(_realCurr)
475
+ ")
476
+ endif()
477
+
478
+ if(NOT CCF_NO_SET_AND_CHECK_MACRO)
479
+ string(APPEND PACKAGE_INIT "
480
+ macro(set_and_check _var _file)
481
+ set(\${_var} \"\${_file}\")
482
+ if(NOT EXISTS \"\${_file}\")
483
+ message(FATAL_ERROR \"File or directory \${_file} referenced by variable \${_var} does not exist !\")
484
+ endif()
485
+ endmacro()
486
+ ")
487
+ endif()
488
+
489
+
490
+ if(NOT CCF_NO_CHECK_REQUIRED_COMPONENTS_MACRO)
491
+ string(APPEND PACKAGE_INIT "
492
+ macro(check_required_components _NAME)
493
+ foreach(comp \${\${_NAME}_FIND_COMPONENTS})
494
+ if(NOT \${_NAME}_\${comp}_FOUND)
495
+ if(\${_NAME}_FIND_REQUIRED_\${comp})
496
+ set(\${_NAME}_FOUND FALSE)
497
+ endif()
498
+ endif()
499
+ endforeach()
500
+ endmacro()
501
+ ")
502
+ endif()
503
+
504
+ string(APPEND PACKAGE_INIT "
505
+ ####################################################################################")
506
+
507
+ configure_file("${_inputFile}" "${_outputFile}" @ONLY)
508
+
509
+ endfunction()
510
+
511
+ function(generate_apple_platform_selection_file _output_file)
512
+ set(_config_file_options
513
+ MACOS_INCLUDE_FILE
514
+ IOS_INCLUDE_FILE
515
+ IOS_SIMULATOR_INCLUDE_FILE
516
+ IOS_CATALYST_INCLUDE_FILE
517
+ TVOS_INCLUDE_FILE
518
+ TVOS_SIMULATOR_INCLUDE_FILE
519
+ WATCHOS_INCLUDE_FILE
520
+ WATCHOS_SIMULATOR_INCLUDE_FILE
521
+ VISIONOS_INCLUDE_FILE
522
+ VISIONOS_SIMULATOR_INCLUDE_FILE
523
+ )
524
+
525
+ set(_options)
526
+ set(_single
527
+ INSTALL_DESTINATION
528
+ INSTALL_PREFIX
529
+ ${_config_file_options}
530
+ ERROR_VARIABLE
531
+ )
532
+ set(_multi)
533
+ cmake_parse_arguments(PARSE_ARGV 0 _gpsf "${_options}" "${_single}" "${_multi}")
534
+
535
+ if(NOT _gpsf_INSTALL_DESTINATION)
536
+ message(FATAL_ERROR "No INSTALL_DESTINATION given to generate_apple_platform_selection_file()")
537
+ endif()
538
+ if(_gpsf_INSTALL_PREFIX)
539
+ set(maybe_INSTALL_PREFIX INSTALL_PREFIX ${_gpsf_INSTALL_PREFIX})
540
+ else()
541
+ set(maybe_INSTALL_PREFIX "")
542
+ endif()
543
+
544
+ if(_gpsf_ERROR_VARIABLE)
545
+ set(_branch_INIT "set(\"${_gpsf_ERROR_VARIABLE}\" \"\")")
546
+ else()
547
+ set(_branch_INIT "")
548
+ endif()
549
+
550
+ set(_else ELSE)
551
+ foreach(_opt IN LISTS _config_file_options _else)
552
+ if(_gpsf_${_opt})
553
+ set(_config_file "${_gpsf_${_opt}}")
554
+ if(NOT IS_ABSOLUTE "${_config_file}")
555
+ string(PREPEND _config_file [[${PACKAGE_PREFIX_DIR}/]])
556
+ endif()
557
+ set(_branch_${_opt} "include(\"${_config_file}\")")
558
+ elseif(_gpsf_ERROR_VARIABLE)
559
+ set(_branch_${_opt} "set(\"${_gpsf_ERROR_VARIABLE}\" \"Platform not supported\")")
560
+ else()
561
+ set(_branch_${_opt} "message(FATAL_ERROR \"Platform not supported\")")
562
+ endif()
563
+ endforeach()
564
+
565
+ configure_package_config_file("${CMAKE_CURRENT_FUNCTION_LIST_DIR}/Internal/ApplePlatformSelection.cmake.in" "${_output_file}"
566
+ INSTALL_DESTINATION "${_gpsf_INSTALL_DESTINATION}"
567
+ ${maybe_INSTALL_PREFIX}
568
+ NO_SET_AND_CHECK_MACRO
569
+ NO_CHECK_REQUIRED_COMPONENTS_MACRO
570
+ )
571
+ endfunction()
572
+
573
+ function(generate_apple_architecture_selection_file _output_file)
574
+ set(_options)
575
+ set(_single
576
+ INSTALL_DESTINATION
577
+ INSTALL_PREFIX
578
+ UNIVERSAL_INCLUDE_FILE
579
+ ERROR_VARIABLE
580
+ )
581
+ set(_multi
582
+ SINGLE_ARCHITECTURES
583
+ SINGLE_ARCHITECTURE_INCLUDE_FILES
584
+ UNIVERSAL_ARCHITECTURES
585
+ )
586
+ cmake_parse_arguments(PARSE_ARGV 0 _gasf "${_options}" "${_single}" "${_multi}")
587
+
588
+ if(NOT _gasf_INSTALL_DESTINATION)
589
+ message(FATAL_ERROR "No INSTALL_DESTINATION given to generate_apple_platform_selection_file()")
590
+ endif()
591
+ if(_gasf_INSTALL_PREFIX)
592
+ set(maybe_INSTALL_PREFIX INSTALL_PREFIX ${_gasf_INSTALL_PREFIX})
593
+ else()
594
+ set(maybe_INSTALL_PREFIX "")
595
+ endif()
596
+
597
+ list(LENGTH _gasf_SINGLE_ARCHITECTURES _gasf_SINGLE_ARCHITECTURES_len)
598
+ list(LENGTH _gasf_SINGLE_ARCHITECTURE_INCLUDE_FILES _gasf_SINGLE_ARCHITECTURE_INCLUDE_FILES_len)
599
+ if(NOT _gasf_SINGLE_ARCHITECTURES_len EQUAL _gasf_SINGLE_ARCHITECTURE_INCLUDE_FILES_len)
600
+ message(FATAL_ERROR "SINGLE_ARCHITECTURES and SINGLE_ARCHITECTURE_INCLUDE_FILES do not have the same number of entries.")
601
+ endif()
602
+
603
+ set(_branch_code "")
604
+
605
+ if(_gasf_ERROR_VARIABLE)
606
+ string(APPEND _branch_code
607
+ "set(\"${_gasf_ERROR_VARIABLE}\" \"\")\n"
608
+ )
609
+ endif()
610
+
611
+ string(APPEND _branch_code
612
+ "\n"
613
+ "if(NOT CMAKE_OSX_ARCHITECTURES)\n"
614
+ )
615
+ if(_gasf_ERROR_VARIABLE)
616
+ string(APPEND _branch_code
617
+ " set(\"${_gasf_ERROR_VARIABLE}\" \"CMAKE_OSX_ARCHITECTURES must be explicitly set for this package\")\n"
618
+ " return()\n"
619
+ )
620
+ else()
621
+ string(APPEND _branch_code
622
+ " message(FATAL_ERROR \"CMAKE_OSX_ARCHITECTURES must be explicitly set for this package\")\n"
623
+ )
624
+ endif()
625
+ string(APPEND _branch_code
626
+ "endif()\n\n"
627
+ "set(_cmake_apple_archs \"\${CMAKE_OSX_ARCHITECTURES}\")\n"
628
+ )
629
+ if(NOT "${_gasf_UNIVERSAL_ARCHITECTURES}" STREQUAL "")
630
+ string(APPEND _branch_code "list(REMOVE_ITEM _cmake_apple_archs ${_gasf_UNIVERSAL_ARCHITECTURES})\n")
631
+ endif()
632
+ string(APPEND _branch_code "\n")
633
+
634
+ set(maybe_else "")
635
+
636
+ foreach(pair IN ZIP_LISTS _gasf_SINGLE_ARCHITECTURES _gasf_SINGLE_ARCHITECTURE_INCLUDE_FILES)
637
+ set(arch "${pair_0}")
638
+ set(config_file "${pair_1}")
639
+ if(NOT IS_ABSOLUTE "${config_file}")
640
+ string(PREPEND config_file [[${PACKAGE_PREFIX_DIR}/]])
641
+ endif()
642
+ string(APPEND _branch_code
643
+ "${maybe_else}if(CMAKE_OSX_ARCHITECTURES STREQUAL \"${arch}\")\n"
644
+ " include(\"${config_file}\")\n"
645
+ )
646
+ set(maybe_else else)
647
+ endforeach()
648
+
649
+ if(_gasf_UNIVERSAL_ARCHITECTURES AND _gasf_UNIVERSAL_INCLUDE_FILE)
650
+ set(config_file "${_gasf_UNIVERSAL_INCLUDE_FILE}")
651
+ if(NOT IS_ABSOLUTE "${config_file}")
652
+ string(PREPEND config_file [[${PACKAGE_PREFIX_DIR}/]])
653
+ endif()
654
+ string(APPEND _branch_code
655
+ "${maybe_else}if(NOT _cmake_apple_archs)\n"
656
+ " include(\"${config_file}\")\n"
657
+ )
658
+ set(maybe_else else)
659
+ elseif(_gasf_UNIVERSAL_ARCHITECTURES)
660
+ message(FATAL_ERROR "UNIVERSAL_INCLUDE_FILE requires UNIVERSAL_ARCHITECTURES")
661
+ elseif(_gasf_UNIVERSAL_INCLUDE_FILE)
662
+ message(FATAL_ERROR "UNIVERSAL_ARCHITECTURES requires UNIVERSAL_INCLUDE_FILE")
663
+ endif()
664
+
665
+ if(maybe_else)
666
+ string(APPEND _branch_code "else()\n")
667
+ set(_indent " ")
668
+ else()
669
+ set(_indent "")
670
+ endif()
671
+ if(_gasf_ERROR_VARIABLE)
672
+ string(APPEND _branch_code
673
+ "${_indent}set(\"${_gasf_ERROR_VARIABLE}\" \"Architecture not supported\")\n"
674
+ )
675
+ else()
676
+ string(APPEND _branch_code
677
+ "${_indent}message(FATAL_ERROR \"Architecture not supported\")\n"
678
+ )
679
+ endif()
680
+ if(maybe_else)
681
+ string(APPEND _branch_code "endif()\n")
682
+ endif()
683
+
684
+ configure_package_config_file("${CMAKE_CURRENT_FUNCTION_LIST_DIR}/Internal/AppleArchitectureSelection.cmake.in" "${_output_file}"
685
+ INSTALL_DESTINATION "${_gasf_INSTALL_DESTINATION}"
686
+ ${maybe_INSTALL_PREFIX}
687
+ NO_SET_AND_CHECK_MACRO
688
+ NO_CHECK_REQUIRED_COMPONENTS_MACRO
689
+ )
690
+ endfunction()
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeParseLibraryArchitecture.cmake ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ cmake_policy(PUSH)
5
+ cmake_policy(SET CMP0053 NEW)
6
+ cmake_policy(SET CMP0054 NEW)
7
+
8
+ # Function parse implicit linker options.
9
+ # This is used internally by CMake and should not be included by user
10
+ # code.
11
+
12
+ function(cmake_parse_library_architecture lang implicit_dirs implicit_objs output_var)
13
+ unset(library_arch)
14
+ # Detect library architecture directory name.
15
+ if(CMAKE_LIBRARY_ARCHITECTURE_REGEX)
16
+ foreach(dir IN LISTS implicit_dirs)
17
+ if("${dir}" MATCHES "/lib/${CMAKE_LIBRARY_ARCHITECTURE_REGEX}$")
18
+ get_filename_component(arch "${dir}" NAME)
19
+ set(library_arch "${arch}")
20
+ break()
21
+ endif()
22
+ endforeach()
23
+
24
+ foreach(obj IN LISTS implicit_objs)
25
+ get_filename_component(dir "${obj}" DIRECTORY)
26
+ if("${dir}" MATCHES "(/usr)?/lib/${CMAKE_LIBRARY_ARCHITECTURE_REGEX}$")
27
+ get_filename_component(arch "${dir}" NAME)
28
+ set(library_arch "${arch}")
29
+ break()
30
+ endif()
31
+ endforeach()
32
+ endif()
33
+
34
+ if(CMAKE_CXX_COMPILER_ID STREQUAL QCC)
35
+ foreach(dir ${implicit_dirs})
36
+ if (dir MATCHES "/lib$")
37
+ get_filename_component(assumedArchDir "${dir}" DIRECTORY)
38
+ get_filename_component(archParentDir "${assumedArchDir}" DIRECTORY)
39
+ if (archParentDir STREQUAL CMAKE_SYSROOT)
40
+ get_filename_component(archDirName "${assumedArchDir}" NAME)
41
+ set(library_arch "${archDirName}")
42
+ break()
43
+ endif()
44
+ endif()
45
+ endforeach()
46
+ endif()
47
+
48
+ # Return results.
49
+ if(library_arch)
50
+ set(${output_var} "${library_arch}" PARENT_SCOPE)
51
+ endif()
52
+ endfunction()
53
+
54
+ cmake_policy(POP)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakePrintHelpers.cmake ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ CMakePrintHelpers
6
+ -----------------
7
+
8
+ Convenience functions for printing properties and variables, useful
9
+ e.g. for debugging.
10
+
11
+ ::
12
+
13
+ cmake_print_properties(<TARGETS [<target1> ...] |
14
+ SOURCES [<source1> ...] |
15
+ DIRECTORIES [<dir1> ...] |
16
+ TESTS [<test1> ...] |
17
+ CACHE_ENTRIES [<entry1> ...] >
18
+ PROPERTIES [<prop1> ...] )
19
+
20
+ This function prints the values of the properties of the given targets,
21
+ source files, directories, tests or cache entries. Exactly one of the
22
+ scope keywords must be used. The scope keyword and its arguments must
23
+ come before the ``PROPERTIES`` keyword, in the arguments list.
24
+
25
+ Example::
26
+
27
+ cmake_print_properties(TARGETS foo bar PROPERTIES
28
+ LOCATION INTERFACE_INCLUDE_DIRECTORIES)
29
+
30
+ This will print the LOCATION and INTERFACE_INCLUDE_DIRECTORIES properties for
31
+ both targets foo and bar.
32
+
33
+ ::
34
+
35
+ cmake_print_variables(var1 var2 .. varN)
36
+
37
+ This function will print the name of each variable followed by its value.
38
+ Example::
39
+
40
+ cmake_print_variables(CMAKE_C_COMPILER CMAKE_MAJOR_VERSION DOES_NOT_EXIST)
41
+
42
+ Gives::
43
+
44
+ -- CMAKE_C_COMPILER="/usr/bin/gcc" ; CMAKE_MAJOR_VERSION="2" ; DOES_NOT_EXIST=""
45
+ #]=======================================================================]
46
+
47
+ function(cmake_print_variables)
48
+ set(msg "")
49
+ foreach(var ${ARGN})
50
+ if(msg)
51
+ string(APPEND msg " ; ")
52
+ endif()
53
+ string(APPEND msg "${var}=\"${${var}}\"")
54
+ endforeach()
55
+ message(STATUS "${msg}")
56
+ endfunction()
57
+
58
+
59
+ function(cmake_print_properties)
60
+ set(options )
61
+ set(oneValueArgs )
62
+ set(cpp_multiValueArgs PROPERTIES )
63
+ set(cppmode_multiValueArgs TARGETS SOURCES TESTS DIRECTORIES CACHE_ENTRIES )
64
+
65
+ string(JOIN " " _mode_names ${cppmode_multiValueArgs})
66
+ set(_missing_mode_message
67
+ "Mode keyword missing in cmake_print_properties() call, there must be exactly one of ${_mode_names}")
68
+
69
+ cmake_parse_arguments(
70
+ CPP "${options}" "${oneValueArgs}" "${cpp_multiValueArgs}" ${ARGN})
71
+
72
+ if(NOT CPP_PROPERTIES)
73
+ message(FATAL_ERROR
74
+ "Required argument PROPERTIES missing in cmake_print_properties() call")
75
+ return()
76
+ endif()
77
+
78
+ if(NOT CPP_UNPARSED_ARGUMENTS)
79
+ message(FATAL_ERROR "${_missing_mode_message}")
80
+ return()
81
+ endif()
82
+
83
+ cmake_parse_arguments(
84
+ CPPMODE "${options}" "${oneValueArgs}" "${cppmode_multiValueArgs}"
85
+ ${CPP_UNPARSED_ARGUMENTS})
86
+
87
+ if(CPPMODE_UNPARSED_ARGUMENTS)
88
+ message(FATAL_ERROR
89
+ "Unknown keywords given to cmake_print_properties(): \"${CPPMODE_UNPARSED_ARGUMENTS}\"")
90
+ return()
91
+ endif()
92
+
93
+ set(mode)
94
+ set(items)
95
+ set(keyword)
96
+
97
+ if(CPPMODE_TARGETS)
98
+ set(items ${CPPMODE_TARGETS})
99
+ set(mode ${mode} TARGETS)
100
+ set(keyword TARGET)
101
+ endif()
102
+
103
+ if(CPPMODE_SOURCES)
104
+ set(items ${CPPMODE_SOURCES})
105
+ set(mode ${mode} SOURCES)
106
+ set(keyword SOURCE)
107
+ endif()
108
+
109
+ if(CPPMODE_TESTS)
110
+ set(items ${CPPMODE_TESTS})
111
+ set(mode ${mode} TESTS)
112
+ set(keyword TEST)
113
+ endif()
114
+
115
+ if(CPPMODE_DIRECTORIES)
116
+ set(items ${CPPMODE_DIRECTORIES})
117
+ set(mode ${mode} DIRECTORIES)
118
+ set(keyword DIRECTORY)
119
+ endif()
120
+
121
+ if(CPPMODE_CACHE_ENTRIES)
122
+ set(items ${CPPMODE_CACHE_ENTRIES})
123
+ set(mode ${mode} CACHE_ENTRIES)
124
+ # This is a workaround for the fact that passing `CACHE` as an argument to
125
+ # set() causes a cache variable to be set.
126
+ set(keyword "")
127
+ string(APPEND keyword CACHE)
128
+ endif()
129
+
130
+ if(NOT mode)
131
+ message(FATAL_ERROR "${_missing_mode_message}")
132
+ return()
133
+ endif()
134
+
135
+ list(LENGTH mode modeLength)
136
+ if("${modeLength}" GREATER 1)
137
+ message(FATAL_ERROR
138
+ "Multiple mode keywords used in cmake_print_properties() call, there must be exactly one of ${_mode_names}.")
139
+ return()
140
+ endif()
141
+
142
+ set(msg "\n")
143
+ foreach(item ${items})
144
+
145
+ set(itemExists TRUE)
146
+ if(keyword STREQUAL "TARGET")
147
+ if(NOT TARGET ${item})
148
+ set(itemExists FALSE)
149
+ string(APPEND msg "\n No such TARGET \"${item}\" !\n\n")
150
+ endif()
151
+ endif()
152
+
153
+ if (itemExists)
154
+ string(APPEND msg " Properties for ${keyword} ${item}:\n")
155
+ foreach(prop ${CPP_PROPERTIES})
156
+
157
+ get_property(propertySet ${keyword} ${item} PROPERTY "${prop}" SET)
158
+
159
+ if(propertySet)
160
+ get_property(property ${keyword} ${item} PROPERTY "${prop}")
161
+ string(APPEND msg " ${item}.${prop} = \"${property}\"\n")
162
+ else()
163
+ string(APPEND msg " ${item}.${prop} = <NOTFOUND>\n")
164
+ endif()
165
+ endforeach()
166
+ endif()
167
+
168
+ endforeach()
169
+ message(STATUS "${msg}")
170
+
171
+ endfunction()
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeSystemSpecificInitialize.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # This file is included by cmGlobalGenerator::EnableLanguage.
6
+ # It is included before the compiler has been determined.
7
+
8
+ # before cmake 2.6 these variables were set in cmMakefile.cxx. This is still
9
+ # done to keep scripts and custom language and compiler modules working.
10
+ # But they are reset here and set again in the platform files for the target
11
+ # platform, so they can be used for testing the target platform instead
12
+ # of testing the host platform.
13
+ unset(APPLE)
14
+ unset(UNIX)
15
+ unset(CYGWIN)
16
+ unset(MSYS)
17
+ unset(WIN32)
18
+ unset(BSD)
19
+ unset(LINUX)
20
+
21
+ # The CMAKE_EFFECTIVE_SYSTEM_NAME is used to load compiler and compiler
22
+ # wrapper configuration files. By default it equals to CMAKE_SYSTEM_NAME
23
+ # but could be overridden in the ${CMAKE_SYSTEM_NAME}-Initialize files.
24
+ #
25
+ # It is useful to share the same aforementioned configuration files and
26
+ # avoids duplicating them in case of tightly related platforms.
27
+ #
28
+ # An example are the platforms supported by Xcode (macOS, iOS, tvOS, visionOS
29
+ # and watchOS). For all of those the CMAKE_EFFECTIVE_SYSTEM_NAME is
30
+ # set to Apple which results in using
31
+ # Platform/Apple-AppleClang-CXX.cmake for the Apple C++ compiler.
32
+ set(CMAKE_EFFECTIVE_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
33
+
34
+ include(Platform/${CMAKE_SYSTEM_NAME}-Initialize OPTIONAL)
35
+
36
+ set(CMAKE_SYSTEM_SPECIFIC_INITIALIZE_LOADED 1)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestASM-ATTCompiler.cmake ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # This file is used by EnableLanguage in cmGlobalGenerator to
6
+ # determine that the selected ASM-ATT "compiler" works.
7
+ # For assembler this can only check whether the compiler has been found,
8
+ # because otherwise there would have to be a separate assembler source file
9
+ # for each assembler on every architecture.
10
+
11
+ set(ASM_DIALECT "-ATT")
12
+ include(CMakeTestASMCompiler)
13
+ set(ASM_DIALECT)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestASM_NASMCompiler.cmake ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ # This file is used by EnableLanguage in cmGlobalGenerator to
6
+ # determine that the selected ASM_NASM "compiler" works.
7
+ # For assembler this can only check whether the compiler has been found,
8
+ # because otherwise there would have to be a separate assembler source file
9
+ # for each assembler on every architecture.
10
+
11
+ set(ASM_DIALECT "_NASM")
12
+ include(CMakeTestASMCompiler)
13
+ set(ASM_DIALECT)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestCXXCompiler.cmake ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ if(CMAKE_CXX_COMPILER_FORCED)
6
+ # The compiler configuration was forced by the user.
7
+ # Assume the user has configured all compiler information.
8
+ set(CMAKE_CXX_COMPILER_WORKS TRUE)
9
+ return()
10
+ endif()
11
+
12
+ include(CMakeTestCompilerCommon)
13
+
14
+ # work around enforced code signing and / or missing executable target type
15
+ set(__CMAKE_SAVED_TRY_COMPILE_TARGET_TYPE ${CMAKE_TRY_COMPILE_TARGET_TYPE})
16
+ if(_CMAKE_FEATURE_DETECTION_TARGET_TYPE)
17
+ set(CMAKE_TRY_COMPILE_TARGET_TYPE ${_CMAKE_FEATURE_DETECTION_TARGET_TYPE})
18
+ endif()
19
+
20
+ # Remove any cached result from an older CMake version.
21
+ # We now store this in CMakeCXXCompiler.cmake.
22
+ unset(CMAKE_CXX_COMPILER_WORKS CACHE)
23
+
24
+ # Try to identify the ABI and configure it into CMakeCXXCompiler.cmake
25
+ include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerABI.cmake)
26
+ CMAKE_DETERMINE_COMPILER_ABI(CXX ${CMAKE_ROOT}/Modules/CMakeCXXCompilerABI.cpp)
27
+ if(CMAKE_CXX_ABI_COMPILED)
28
+ # The compiler worked so skip dedicated test below.
29
+ set(CMAKE_CXX_COMPILER_WORKS TRUE)
30
+ message(STATUS "Check for working CXX compiler: ${CMAKE_CXX_COMPILER} - skipped")
31
+ endif()
32
+
33
+ # This file is used by EnableLanguage in cmGlobalGenerator to
34
+ # determine that the selected C++ compiler can actually compile
35
+ # and link the most basic of programs. If not, a fatal error
36
+ # is set and cmake stops processing commands and will not generate
37
+ # any makefiles or projects.
38
+ if(NOT CMAKE_CXX_COMPILER_WORKS)
39
+ PrintTestCompilerStatus("CXX")
40
+ # FIXME: Use a block() to isolate the variables we set/unset here.
41
+ if(DEFINED CMAKE_CXX_SCAN_FOR_MODULES)
42
+ set(__CMAKE_SAVED_CXX_SCAN_FOR_MODULES "${CMAKE_CXX_SCAN_FOR_MODULES}")
43
+ else()
44
+ unset(__CMAKE_SAVED_CXX_SCAN_FOR_MODULES)
45
+ endif()
46
+ set(CMAKE_CXX_SCAN_FOR_MODULES OFF)
47
+ __TestCompiler_setTryCompileTargetType()
48
+ string(CONCAT __TestCompiler_testCXXCompilerSource
49
+ "#ifndef __cplusplus\n"
50
+ "# error \"The CMAKE_CXX_COMPILER is set to a C compiler\"\n"
51
+ "#endif\n"
52
+ "int main(){return 0;}\n")
53
+ # Clear result from normal variable.
54
+ unset(CMAKE_CXX_COMPILER_WORKS)
55
+ # Puts test result in cache variable.
56
+ try_compile(CMAKE_CXX_COMPILER_WORKS
57
+ SOURCE_FROM_VAR testCXXCompiler.cxx __TestCompiler_testCXXCompilerSource
58
+ OUTPUT_VARIABLE __CMAKE_CXX_COMPILER_OUTPUT)
59
+ if(DEFINED __CMAKE_SAVED_CXX_SCAN_FOR_MODULES)
60
+ set(CMAKE_CXX_SCAN_FOR_MODULES "${__CMAKE_SAVED_CXX_SCAN_FOR_MODULES}")
61
+ unset(__CMAKE_SAVED_CXX_SCAN_FOR_MODULES)
62
+ else()
63
+ unset(CMAKE_CXX_SCAN_FOR_MODULES)
64
+ endif()
65
+ unset(__TestCompiler_testCXXCompilerSource)
66
+ # Move result from cache to normal variable.
67
+ set(CMAKE_CXX_COMPILER_WORKS ${CMAKE_CXX_COMPILER_WORKS})
68
+ unset(CMAKE_CXX_COMPILER_WORKS CACHE)
69
+ __TestCompiler_restoreTryCompileTargetType()
70
+ if(NOT CMAKE_CXX_COMPILER_WORKS)
71
+ PrintTestCompilerResult(CHECK_FAIL "broken")
72
+ string(REPLACE "\n" "\n " _output "${__CMAKE_CXX_COMPILER_OUTPUT}")
73
+ message(FATAL_ERROR "The C++ compiler\n \"${CMAKE_CXX_COMPILER}\"\n"
74
+ "is not able to compile a simple test program.\nIt fails "
75
+ "with the following output:\n ${_output}\n\n"
76
+ "CMake will not be able to correctly generate this project.")
77
+ endif()
78
+ PrintTestCompilerResult(CHECK_PASS "works")
79
+ endif()
80
+
81
+ # Try to identify the compiler features
82
+ include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerSupport.cmake)
83
+ CMAKE_DETERMINE_COMPILER_SUPPORT(CXX)
84
+
85
+ # Re-configure to save learned information.
86
+ configure_file(
87
+ ${CMAKE_ROOT}/Modules/CMakeCXXCompiler.cmake.in
88
+ ${CMAKE_PLATFORM_INFO_DIR}/CMakeCXXCompiler.cmake
89
+ @ONLY
90
+ )
91
+ include(${CMAKE_PLATFORM_INFO_DIR}/CMakeCXXCompiler.cmake)
92
+
93
+ if(CMAKE_CXX_SIZEOF_DATA_PTR)
94
+ foreach(f ${CMAKE_CXX_ABI_FILES})
95
+ include(${f})
96
+ endforeach()
97
+ unset(CMAKE_CXX_ABI_FILES)
98
+ endif()
99
+
100
+ set(CMAKE_TRY_COMPILE_TARGET_TYPE ${__CMAKE_SAVED_TRY_COMPILE_TARGET_TYPE})
101
+ unset(__CMAKE_SAVED_TRY_COMPILE_TARGET_TYPE)
102
+ unset(__CMAKE_CXX_COMPILER_OUTPUT)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestFortranCompiler.cmake ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+
5
+ if(CMAKE_Fortran_COMPILER_FORCED)
6
+ # The compiler configuration was forced by the user.
7
+ # Assume the user has configured all compiler information.
8
+ set(CMAKE_Fortran_COMPILER_WORKS TRUE)
9
+ return()
10
+ endif()
11
+
12
+ include(CMakeTestCompilerCommon)
13
+
14
+ # Remove any cached result from an older CMake version.
15
+ # We now store this in CMakeFortranCompiler.cmake.
16
+ unset(CMAKE_Fortran_COMPILER_WORKS CACHE)
17
+
18
+ # Try to identify the ABI and configure it into CMakeFortranCompiler.cmake
19
+ include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerABI.cmake)
20
+ CMAKE_DETERMINE_COMPILER_ABI(Fortran ${CMAKE_ROOT}/Modules/CMakeFortranCompilerABI.F90)
21
+ if(CMAKE_Fortran_ABI_COMPILED)
22
+ # The compiler worked so skip dedicated test below.
23
+ set(CMAKE_Fortran_COMPILER_WORKS TRUE)
24
+ set(CMAKE_Fortran_COMPILER_SUPPORTS_F90 1)
25
+ message(STATUS "Check for working Fortran compiler: ${CMAKE_Fortran_COMPILER} - skipped")
26
+ else()
27
+ cmake_determine_compiler_abi(Fortran ${CMAKE_ROOT}/Modules/CMakeFortranCompilerABI.F)
28
+ if(CMAKE_Fortran_ABI_COMPILED)
29
+ set(CMAKE_Fortran_COMPILER_WORKS TRUE)
30
+ message(STATUS "Check for working Fortran 77 compiler: ${CMAKE_Fortran_COMPILER} - skipped")
31
+ endif()
32
+ endif()
33
+
34
+ # This file is used by EnableLanguage in cmGlobalGenerator to
35
+ # determine that the selected Fortran compiler can actually compile
36
+ # and link the most basic of programs. If not, a fatal error
37
+ # is set and cmake stops processing commands and will not generate
38
+ # any makefiles or projects.
39
+ if(NOT CMAKE_Fortran_COMPILER_WORKS)
40
+ PrintTestCompilerStatus("Fortran")
41
+ set(__TestCompiler_testFortranCompilerSource "
42
+ PROGRAM TESTFortran
43
+ PRINT *, 'Hello'
44
+ END
45
+ ")
46
+ # Clear result from normal variable.
47
+ unset(CMAKE_Fortran_COMPILER_WORKS)
48
+ # Puts test result in cache variable.
49
+ try_compile(CMAKE_Fortran_COMPILER_WORKS
50
+ SOURCE_FROM_VAR testFortranCompiler.f __TestCompiler_testFortranCompilerSource
51
+ OUTPUT_VARIABLE OUTPUT)
52
+ unset(__TestCompiler_testFortranCompilerSource)
53
+ # Move result from cache to normal variable.
54
+ set(CMAKE_Fortran_COMPILER_WORKS ${CMAKE_Fortran_COMPILER_WORKS})
55
+ unset(CMAKE_Fortran_COMPILER_WORKS CACHE)
56
+ if(NOT CMAKE_Fortran_COMPILER_WORKS)
57
+ PrintTestCompilerResult(CHECK_FAIL "broken")
58
+ string(REPLACE "\n" "\n " _output "${OUTPUT}")
59
+ message(FATAL_ERROR "The Fortran compiler\n \"${CMAKE_Fortran_COMPILER}\"\n"
60
+ "is not able to compile a simple test program.\nIt fails "
61
+ "with the following output:\n ${_output}\n\n"
62
+ "CMake will not be able to correctly generate this project.")
63
+ endif()
64
+ PrintTestCompilerResult(CHECK_PASS "works")
65
+ endif()
66
+
67
+ # Test for Fortran 90 support by using an f90-specific construct.
68
+ if(NOT DEFINED CMAKE_Fortran_COMPILER_SUPPORTS_F90)
69
+ message(CHECK_START "Checking whether ${CMAKE_Fortran_COMPILER} supports Fortran 90")
70
+ set(__TestCompiler_testFortranCompilerSource "
71
+ PROGRAM TESTFortran90
72
+ integer stop ; stop = 1 ; do while ( stop .eq. 0 ) ; end do
73
+ END PROGRAM TESTFortran90
74
+ ")
75
+ try_compile(CMAKE_Fortran_COMPILER_SUPPORTS_F90
76
+ SOURCE_FROM_VAR testFortranCompilerF90.f90 __TestCompiler_testFortranCompilerF90Source
77
+ OUTPUT_VARIABLE OUTPUT)
78
+ unset(__TestCompiler_testFortranCompilerF90Source)
79
+ if(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
80
+ message(CHECK_PASS "yes")
81
+ set(CMAKE_Fortran_COMPILER_SUPPORTS_F90 1)
82
+ else()
83
+ message(CHECK_FAIL "no")
84
+ set(CMAKE_Fortran_COMPILER_SUPPORTS_F90 0)
85
+ endif()
86
+ unset(CMAKE_Fortran_COMPILER_SUPPORTS_F90 CACHE)
87
+ endif()
88
+
89
+ # Re-configure to save learned information.
90
+ configure_file(
91
+ ${CMAKE_ROOT}/Modules/CMakeFortranCompiler.cmake.in
92
+ ${CMAKE_PLATFORM_INFO_DIR}/CMakeFortranCompiler.cmake
93
+ @ONLY
94
+ )
95
+ include(${CMAKE_PLATFORM_INFO_DIR}/CMakeFortranCompiler.cmake)
96
+
97
+ if(CMAKE_Fortran_SIZEOF_DATA_PTR)
98
+ foreach(f ${CMAKE_Fortran_ABI_FILES})
99
+ include(${f})
100
+ endforeach()
101
+ unset(CMAKE_Fortran_ABI_FILES)
102
+ endif()
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CTestScriptMode.cmake ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ CTestScriptMode
6
+ ---------------
7
+
8
+
9
+
10
+ This file is read by ctest in script mode (-S)
11
+ #]=======================================================================]
12
+
13
+ # Determine the current system, so this information can be used
14
+ # in ctest scripts
15
+ include(CMakeDetermineSystem)
16
+
17
+ # Also load the system specific file, which sets up e.g. the search paths.
18
+ # This makes the FIND_XXX() calls work much better
19
+ include(CMakeSystemSpecificInformation)
20
+
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CXX-DetectStdlib.h ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #include <version>
2
+ // clang-format off
3
+ #if defined(_LIBCPP_VERSION)
4
+ CMAKE-STDLIB-DETECT: libc++
5
+ #elif defined(__GLIBCXX__)
6
+ CMAKE-STDLIB-DETECT: libstdc++
7
+ #else
8
+ CMAKE-STDLIB-DETECT: UNKNOWN
9
+ #endif
10
+ // clang-format on
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckFortranCompilerFlag.cmake ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ CheckFortranCompilerFlag
6
+ ------------------------
7
+
8
+ .. versionadded:: 3.3
9
+
10
+ Check once whether the Fortran compiler supports a given flag.
11
+
12
+ .. command:: check_fortran_compiler_flag
13
+
14
+ .. code-block:: cmake
15
+
16
+ check_fortran_compiler_flag(<flag> <resultVar>)
17
+
18
+ Check once that the ``<flag>`` is accepted by the compiler without a diagnostic.
19
+ The result is stored in the internal cache variable specified by
20
+ ``<resultVar>``, with boolean ``true`` for success and boolean ``false`` for
21
+ failure.
22
+
23
+ ``true`` indicates only that the compiler did not issue a diagnostic message
24
+ when given the flag. Whether the flag has any effect is beyond the scope of
25
+ this module.
26
+
27
+ Internally, :command:`try_compile` is used to perform the check. If
28
+ :variable:`CMAKE_TRY_COMPILE_TARGET_TYPE` is set to ``EXECUTABLE`` (default),
29
+ the check compiles and links an executable program. If set to
30
+ ``STATIC_LIBRARY``, the check is compiled but not linked.
31
+
32
+ See also :command:`check_compiler_flag` for a more general command syntax.
33
+
34
+ The compile and link commands can be influenced by setting any of the
35
+ following variables prior to calling ``check_fortran_compiler_flag()``. Unknown
36
+ flags in these variables can case a false negative result.
37
+
38
+ .. include:: /module/CMAKE_REQUIRED_FLAGS.txt
39
+
40
+ .. include:: /module/CMAKE_REQUIRED_DEFINITIONS.txt
41
+
42
+ .. include:: /module/CMAKE_REQUIRED_INCLUDES.txt
43
+
44
+ .. include:: /module/CMAKE_REQUIRED_LINK_OPTIONS.txt
45
+
46
+ .. include:: /module/CMAKE_REQUIRED_LIBRARIES.txt
47
+
48
+ .. include:: /module/CMAKE_REQUIRED_LINK_DIRECTORIES.txt
49
+
50
+ .. include:: /module/CMAKE_REQUIRED_QUIET.txt
51
+
52
+ #]=======================================================================]
53
+
54
+ include_guard(GLOBAL)
55
+ include(Internal/CheckCompilerFlag)
56
+
57
+ macro (CHECK_FORTRAN_COMPILER_FLAG _FLAG _RESULT)
58
+ cmake_check_compiler_flag(Fortran "${_FLAG}" ${_RESULT})
59
+ endmacro ()
60
+
61
+ # FIXME(#24994): The following module is included only for compatibility
62
+ # with projects that accidentally relied on it with CMake 3.26 and below.
63
+ include(CheckFortranSourceCompiles)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckIPOSupported.cmake ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ CheckIPOSupported
6
+ -----------------
7
+
8
+ .. versionadded:: 3.9
9
+
10
+ Check whether the compiler supports an interprocedural optimization (IPO/LTO).
11
+ Use this before enabling the :prop_tgt:`INTERPROCEDURAL_OPTIMIZATION` target
12
+ property.
13
+
14
+ .. command:: check_ipo_supported
15
+
16
+ ::
17
+
18
+ check_ipo_supported([RESULT <result>] [OUTPUT <output>]
19
+ [LANGUAGES <lang>...])
20
+
21
+ Options are:
22
+
23
+ ``RESULT <result>``
24
+ Set ``<result>`` variable to ``YES`` if IPO is supported by the
25
+ compiler and ``NO`` otherwise. If this option is not given then
26
+ the command will issue a fatal error if IPO is not supported.
27
+ ``OUTPUT <output>``
28
+ Set ``<output>`` variable with details about any error.
29
+ ``LANGUAGES <lang>...``
30
+ Specify languages whose compilers to check.
31
+ Languages ``C``, ``CXX``, and ``Fortran`` are supported.
32
+
33
+ It makes no sense to use this module when :policy:`CMP0069` is set to ``OLD`` so
34
+ module will return error in this case. See policy :policy:`CMP0069` for details.
35
+
36
+ .. versionadded:: 3.13
37
+ Add support for Visual Studio generators.
38
+
39
+ .. versionadded:: 3.24
40
+ The check uses the caller's :variable:`CMAKE_<LANG>_FLAGS`
41
+ and :variable:`CMAKE_<LANG>_FLAGS_<CONFIG>` values.
42
+ See policy :policy:`CMP0138`.
43
+
44
+ Examples
45
+ ^^^^^^^^
46
+
47
+ .. code-block:: cmake
48
+
49
+ check_ipo_supported() # fatal error if IPO is not supported
50
+ set_property(TARGET foo PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
51
+
52
+ .. code-block:: cmake
53
+
54
+ # Optional IPO. Do not use IPO if it's not supported by compiler.
55
+ check_ipo_supported(RESULT result OUTPUT output)
56
+ if(result)
57
+ set_property(TARGET foo PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
58
+ else()
59
+ message(WARNING "IPO is not supported: ${output}")
60
+ endif()
61
+
62
+ #]=======================================================================]
63
+
64
+ # X_RESULT - name of the final result variable
65
+ # X_OUTPUT - name of the variable with information about error
66
+ macro(_ipo_not_supported output)
67
+ if(NOT X_RESULT)
68
+ message(FATAL_ERROR "IPO is not supported (${output}).")
69
+ endif()
70
+
71
+ set("${X_RESULT}" NO PARENT_SCOPE)
72
+ if(X_OUTPUT)
73
+ set("${X_OUTPUT}" "${output}" PARENT_SCOPE)
74
+ endif()
75
+ endmacro()
76
+
77
+ # Run IPO/LTO test
78
+ macro(_ipo_run_language_check language)
79
+ set(_C_ext "c")
80
+ set(_CXX_ext "cpp")
81
+ set(_Fortran_ext "f")
82
+ string(COMPARE EQUAL "${language}" "CUDA" is_cuda)
83
+
84
+ set(ext ${_${language}_ext})
85
+ if(NOT "${ext}" STREQUAL "")
86
+ set(copy_sources foo.${ext} main.${ext})
87
+ elseif(is_cuda)
88
+ if(_CMAKE_CUDA_IPO_SUPPORTED_BY_CMAKE)
89
+ set("${X_RESULT}" YES PARENT_SCOPE)
90
+ endif()
91
+ return()
92
+ else()
93
+ message(FATAL_ERROR "Language not supported")
94
+ endif()
95
+
96
+ set(testdir "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/_CMakeLTOTest-${language}")
97
+
98
+ file(REMOVE_RECURSE "${testdir}")
99
+ file(MAKE_DIRECTORY "${testdir}")
100
+
101
+ set(bindir "${testdir}/bin")
102
+ set(srcdir "${testdir}/src")
103
+
104
+ file(MAKE_DIRECTORY "${bindir}")
105
+ file(MAKE_DIRECTORY "${srcdir}")
106
+
107
+ set(TRY_COMPILE_PROJECT_NAME "lto-test")
108
+
109
+ set(try_compile_src "${CMAKE_ROOT}/Modules/CheckIPOSupported")
110
+
111
+ # Use:
112
+ # * TRY_COMPILE_PROJECT_NAME
113
+ # * CMAKE_VERSION
114
+ configure_file(
115
+ "${try_compile_src}/CMakeLists-${language}.txt.in"
116
+ "${srcdir}/CMakeLists.txt"
117
+ @ONLY
118
+ )
119
+
120
+ foreach(x ${copy_sources})
121
+ configure_file(
122
+ "${try_compile_src}/${x}"
123
+ "${srcdir}/${x}"
124
+ COPYONLY
125
+ )
126
+ endforeach()
127
+
128
+ if(ipo_CMP0138 STREQUAL "NEW")
129
+ set(CMAKE_TRY_COMPILE_CONFIGURATION Debug)
130
+ set(_CMAKE_LANG_FLAGS
131
+ "-DCMAKE_${language}_FLAGS:STRING=${CMAKE_${language}_FLAGS}"
132
+ "-DCMAKE_${language}_FLAGS_DEBUG:STRING=${CMAKE_${language}_FLAGS_DEBUG}"
133
+ )
134
+ else()
135
+ set(_CMAKE_LANG_FLAGS "")
136
+ endif()
137
+
138
+ try_compile(
139
+ _IPO_LANGUAGE_CHECK_RESULT
140
+ PROJECT "${TRY_COMPILE_PROJECT_NAME}"
141
+ SOURCE_DIR "${srcdir}"
142
+ BINARY_DIR "${bindir}"
143
+ CMAKE_FLAGS
144
+ "-DCMAKE_VERBOSE_MAKEFILE=ON"
145
+ "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"
146
+ ${_CMAKE_LANG_FLAGS}
147
+ OUTPUT_VARIABLE output
148
+ )
149
+ set(_IPO_LANGUAGE_CHECK_RESULT "${_IPO_LANGUAGE_CHECK_RESULT}")
150
+ unset(_IPO_LANGUAGE_CHECK_RESULT CACHE)
151
+
152
+ if(NOT _IPO_LANGUAGE_CHECK_RESULT)
153
+ _ipo_not_supported("check failed to compile")
154
+ if(X_OUTPUT)
155
+ set("${X_OUTPUT}" "${output}" PARENT_SCOPE)
156
+ endif()
157
+ return()
158
+ endif()
159
+ endmacro()
160
+
161
+ function(check_ipo_supported)
162
+ cmake_policy(GET CMP0069 x)
163
+
164
+ string(COMPARE EQUAL "${x}" "" not_set)
165
+ if(not_set)
166
+ message(FATAL_ERROR "Policy CMP0069 is not set")
167
+ endif()
168
+
169
+ string(COMPARE EQUAL "${x}" "OLD" is_old)
170
+ if(is_old)
171
+ message(FATAL_ERROR "Policy CMP0069 set to OLD")
172
+ endif()
173
+
174
+ # Save policy setting for condition in _ipo_run_language_check.
175
+ cmake_policy(GET CMP0138 ipo_CMP0138
176
+ PARENT_SCOPE # undocumented, do not use outside of CMake
177
+ )
178
+
179
+ set(optional)
180
+ set(one RESULT OUTPUT)
181
+ set(multiple LANGUAGES)
182
+
183
+ # Introduce:
184
+ # * X_RESULT
185
+ # * X_OUTPUT
186
+ # * X_LANGUAGES
187
+ cmake_parse_arguments(X "${optional}" "${one}" "${multiple}" "${ARGV}")
188
+
189
+ string(COMPARE NOTEQUAL "${X_UNPARSED_ARGUMENTS}" "" has_unparsed)
190
+ if(has_unparsed)
191
+ message(FATAL_ERROR "Unparsed arguments: ${X_UNPARSED_ARGUMENTS}")
192
+ endif()
193
+
194
+ string(COMPARE EQUAL "${X_LANGUAGES}" "" no_languages)
195
+ if(no_languages)
196
+ # User did not set any languages, use defaults
197
+ get_property(enabled_languages GLOBAL PROPERTY ENABLED_LANGUAGES)
198
+ string(COMPARE EQUAL "${enabled_languages}" "" no_languages)
199
+ if(no_languages)
200
+ _ipo_not_supported(
201
+ "no languages found in ENABLED_LANGUAGES global property"
202
+ )
203
+ return()
204
+ endif()
205
+
206
+ set(languages "")
207
+ list(FIND enabled_languages "CXX" result)
208
+ if(NOT result EQUAL -1)
209
+ list(APPEND languages "CXX")
210
+ endif()
211
+
212
+ list(FIND enabled_languages "C" result)
213
+ if(NOT result EQUAL -1)
214
+ list(APPEND languages "C")
215
+ endif()
216
+
217
+ list(FIND enabled_languages "CUDA" result)
218
+ if(NOT result EQUAL -1)
219
+ list(APPEND languages "CUDA")
220
+ endif()
221
+
222
+ list(FIND enabled_languages "Fortran" result)
223
+ if(NOT result EQUAL -1)
224
+ list(APPEND languages "Fortran")
225
+ endif()
226
+
227
+ string(COMPARE EQUAL "${languages}" "" no_languages)
228
+ if(no_languages)
229
+ _ipo_not_supported(
230
+ "no C/CXX/CUDA/Fortran languages found in ENABLED_LANGUAGES global property"
231
+ )
232
+ return()
233
+ endif()
234
+ else()
235
+ set(languages "${X_LANGUAGES}")
236
+
237
+ set(unsupported_languages "${languages}")
238
+ list(REMOVE_ITEM unsupported_languages "C" "CXX" "CUDA" "Fortran")
239
+ string(COMPARE NOTEQUAL "${unsupported_languages}" "" has_unsupported)
240
+ if(has_unsupported)
241
+ _ipo_not_supported(
242
+ "language(s) '${unsupported_languages}' not supported"
243
+ )
244
+ return()
245
+ endif()
246
+ endif()
247
+
248
+ foreach(lang ${languages})
249
+ if(NOT _CMAKE_${lang}_IPO_SUPPORTED_BY_CMAKE)
250
+ _ipo_not_supported("CMake doesn't support IPO for current ${lang} compiler")
251
+ return()
252
+ endif()
253
+
254
+ if(NOT _CMAKE_${lang}_IPO_MAY_BE_SUPPORTED_BY_COMPILER)
255
+ _ipo_not_supported("${lang} compiler doesn't support IPO")
256
+ return()
257
+ endif()
258
+ endforeach()
259
+
260
+ foreach(x ${languages})
261
+ _ipo_run_language_check(${x})
262
+ endforeach()
263
+
264
+ set("${X_RESULT}" YES PARENT_SCOPE)
265
+ endfunction()
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckIncludeFile.cmake ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ CheckIncludeFile
6
+ ----------------
7
+
8
+ Provides a macro to check if a header file can be included in ``C``.
9
+
10
+ .. command:: CHECK_INCLUDE_FILE
11
+
12
+ .. code-block:: cmake
13
+
14
+ CHECK_INCLUDE_FILE(<include> <variable> [<flags>])
15
+
16
+ Check if the given ``<include>`` file may be included in a ``C``
17
+ source file and store the result in an internal cache entry named
18
+ ``<variable>``. The optional third argument may be used to add
19
+ compilation flags to the check (or use ``CMAKE_REQUIRED_FLAGS`` below).
20
+
21
+ The following variables may be set before calling this macro to modify
22
+ the way the check is run:
23
+
24
+ .. include:: /module/CMAKE_REQUIRED_FLAGS.txt
25
+
26
+ .. include:: /module/CMAKE_REQUIRED_DEFINITIONS.txt
27
+
28
+ .. include:: /module/CMAKE_REQUIRED_INCLUDES.txt
29
+
30
+ .. include:: /module/CMAKE_REQUIRED_LINK_OPTIONS.txt
31
+
32
+ .. include:: /module/CMAKE_REQUIRED_LIBRARIES.txt
33
+
34
+ .. include:: /module/CMAKE_REQUIRED_LINK_DIRECTORIES.txt
35
+
36
+ .. include:: /module/CMAKE_REQUIRED_QUIET.txt
37
+
38
+ See the :module:`CheckIncludeFiles` module to check for multiple headers
39
+ at once. See the :module:`CheckIncludeFileCXX` module to check for headers
40
+ using the ``CXX`` language.
41
+ #]=======================================================================]
42
+
43
+ include_guard(GLOBAL)
44
+
45
+ macro(CHECK_INCLUDE_FILE INCLUDE VARIABLE)
46
+ if(NOT DEFINED "${VARIABLE}")
47
+ if(CMAKE_REQUIRED_INCLUDES)
48
+ set(CHECK_INCLUDE_FILE_C_INCLUDE_DIRS "-DINCLUDE_DIRECTORIES=${CMAKE_REQUIRED_INCLUDES}")
49
+ else()
50
+ set(CHECK_INCLUDE_FILE_C_INCLUDE_DIRS)
51
+ endif()
52
+ set(MACRO_CHECK_INCLUDE_FILE_FLAGS ${CMAKE_REQUIRED_FLAGS})
53
+ set(CHECK_INCLUDE_FILE_VAR ${INCLUDE})
54
+ file(READ ${CMAKE_ROOT}/Modules/CheckIncludeFile.c.in _CIF_SOURCE_CONTENT)
55
+ string(CONFIGURE "${_CIF_SOURCE_CONTENT}" _CIF_SOURCE_CONTENT)
56
+ if(NOT CMAKE_REQUIRED_QUIET)
57
+ message(CHECK_START "Looking for ${INCLUDE}")
58
+ endif()
59
+ if(${ARGC} EQUAL 3)
60
+ set(CMAKE_C_FLAGS_SAVE ${CMAKE_C_FLAGS})
61
+ string(APPEND CMAKE_C_FLAGS " ${ARGV2}")
62
+ endif()
63
+
64
+ set(_CIF_LINK_OPTIONS)
65
+ if(CMAKE_REQUIRED_LINK_OPTIONS)
66
+ set(_CIF_LINK_OPTIONS LINK_OPTIONS ${CMAKE_REQUIRED_LINK_OPTIONS})
67
+ endif()
68
+
69
+ set(_CIF_LINK_LIBRARIES "")
70
+ if(CMAKE_REQUIRED_LIBRARIES)
71
+ cmake_policy(GET CMP0075 _CIF_CMP0075
72
+ PARENT_SCOPE # undocumented, do not use outside of CMake
73
+ )
74
+ if("x${_CIF_CMP0075}x" STREQUAL "xNEWx")
75
+ set(_CIF_LINK_LIBRARIES LINK_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
76
+ elseif("x${_CIF_CMP0075}x" STREQUAL "xOLDx")
77
+ elseif(NOT _CIF_CMP0075_WARNED)
78
+ set(_CIF_CMP0075_WARNED 1)
79
+ message(AUTHOR_WARNING
80
+ "Policy CMP0075 is not set: Include file check macros honor CMAKE_REQUIRED_LIBRARIES. "
81
+ "Run \"cmake --help-policy CMP0075\" for policy details. "
82
+ "Use the cmake_policy command to set the policy and suppress this warning."
83
+ "\n"
84
+ "CMAKE_REQUIRED_LIBRARIES is set to:\n"
85
+ " ${CMAKE_REQUIRED_LIBRARIES}\n"
86
+ "For compatibility with CMake 3.11 and below this check is ignoring it."
87
+ )
88
+ endif()
89
+ unset(_CIF_CMP0075)
90
+ endif()
91
+
92
+ if(CMAKE_REQUIRED_LINK_DIRECTORIES)
93
+ set(_CIF_LINK_DIRECTORIES
94
+ "-DLINK_DIRECTORIES:STRING=${CMAKE_REQUIRED_LINK_DIRECTORIES}")
95
+ else()
96
+ set(_CIF_LINK_DIRECTORIES)
97
+ endif()
98
+
99
+ try_compile(${VARIABLE}
100
+ SOURCE_FROM_VAR CheckIncludeFile.c _CIF_SOURCE_CONTENT
101
+ COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
102
+ ${_CIF_LINK_OPTIONS}
103
+ ${_CIF_LINK_LIBRARIES}
104
+ CMAKE_FLAGS
105
+ -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_INCLUDE_FILE_FLAGS}
106
+ "${CHECK_INCLUDE_FILE_C_INCLUDE_DIRS}"
107
+ "${_CIF_LINK_DIRECTORIES}"
108
+ )
109
+ unset(_CIF_LINK_OPTIONS)
110
+ unset(_CIF_LINK_LIBRARIES)
111
+ unset(_CIF_LINK_DIRECTORIES)
112
+
113
+ if(${ARGC} EQUAL 3)
114
+ set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS_SAVE})
115
+ endif()
116
+
117
+ if(${VARIABLE})
118
+ if(NOT CMAKE_REQUIRED_QUIET)
119
+ message(CHECK_PASS "found")
120
+ endif()
121
+ set(${VARIABLE} 1 CACHE INTERNAL "Have include ${INCLUDE}")
122
+ else()
123
+ if(NOT CMAKE_REQUIRED_QUIET)
124
+ message(CHECK_FAIL "not found")
125
+ endif()
126
+ set(${VARIABLE} "" CACHE INTERNAL "Have include ${INCLUDE}")
127
+ endif()
128
+ endif()
129
+ endmacro()
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckIncludeFile.cxx.in ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #include <${CHECK_INCLUDE_FILE_VAR}>
2
+
3
+ int main()
4
+ {
5
+ return 0;
6
+ }
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckLanguage.cmake ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ CheckLanguage
6
+ -------------
7
+
8
+ Check whether a language can be enabled by the :command:`enable_language`
9
+ or :command:`project` commands:
10
+
11
+ .. command:: check_language
12
+
13
+ .. code-block:: cmake
14
+
15
+ check_language(<lang>)
16
+
17
+ Try enabling language ``<lang>`` in a test project and record results
18
+ in the cache:
19
+
20
+ :variable:`CMAKE_<LANG>_COMPILER`
21
+ If the language can be enabled, this variable is set to the compiler
22
+ that was found. If the language cannot be enabled, this variable is
23
+ set to ``NOTFOUND``.
24
+
25
+ If this variable is already set, either explicitly or cached by
26
+ a previous call, the check is skipped.
27
+
28
+ :variable:`CMAKE_<LANG>_HOST_COMPILER`
29
+ This variable is set when ``<lang>`` is ``CUDA`` or ``HIP``.
30
+
31
+ If the check detects an explicit host compiler that is required for
32
+ compilation, this variable will be set to that compiler.
33
+ If the check detects that no explicit host compiler is needed,
34
+ this variable will be cleared.
35
+
36
+ If this variable is already set, its value is preserved only if
37
+ :variable:`CMAKE_<LANG>_COMPILER` is also set.
38
+ Otherwise, the check runs and overwrites
39
+ :variable:`CMAKE_<LANG>_HOST_COMPILER` with a new result.
40
+ Note that :variable:`CMAKE_<LANG>_HOST_COMPILER` documents it should
41
+ not be set without also setting
42
+ :variable:`CMAKE_<LANG>_COMPILER` to a NVCC compiler.
43
+
44
+ :variable:`CMAKE_<LANG>_PLATFORM <CMAKE_HIP_PLATFORM>`
45
+ This variable is set to the detected GPU platform when ``<lang>`` is ``HIP``.
46
+
47
+ If the variable is already set its value is always preserved. Only compatible values
48
+ will be considered for :variable:`CMAKE_<LANG>_COMPILER`.
49
+
50
+ For example:
51
+
52
+ .. code-block:: cmake
53
+
54
+ check_language(Fortran)
55
+ if(CMAKE_Fortran_COMPILER)
56
+ enable_language(Fortran)
57
+ else()
58
+ message(STATUS "No Fortran support")
59
+ endif()
60
+ #]=======================================================================]
61
+
62
+ include_guard(GLOBAL)
63
+
64
+ block(SCOPE_FOR POLICIES)
65
+ cmake_policy(SET CMP0126 NEW)
66
+
67
+ macro(check_language lang)
68
+ if(NOT DEFINED CMAKE_${lang}_COMPILER)
69
+ set(_desc "Looking for a ${lang} compiler")
70
+ message(CHECK_START "${_desc}")
71
+ file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang})
72
+
73
+ set(extra_compiler_variables)
74
+ if("${lang}" MATCHES "^(CUDA|HIP)$" AND NOT CMAKE_GENERATOR MATCHES "Visual Studio")
75
+ set(extra_compiler_variables "set(CMAKE_${lang}_HOST_COMPILER \\\"\${CMAKE_${lang}_HOST_COMPILER}\\\")")
76
+ endif()
77
+
78
+ if("${lang}" STREQUAL "HIP")
79
+ list(APPEND extra_compiler_variables "set(CMAKE_${lang}_PLATFORM \\\"\${CMAKE_${lang}_PLATFORM}\\\")")
80
+ endif()
81
+
82
+ list(TRANSFORM extra_compiler_variables PREPEND "\"")
83
+ list(TRANSFORM extra_compiler_variables APPEND "\\n\"")
84
+ list(JOIN extra_compiler_variables "\n " extra_compiler_variables)
85
+
86
+ set(_cl_content
87
+ "cmake_minimum_required(VERSION ${CMAKE_VERSION})
88
+ set(CMAKE_MODULE_PATH \"${CMAKE_MODULE_PATH}\")
89
+ project(Check${lang} ${lang})
90
+ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\"
91
+ \"set(CMAKE_${lang}_COMPILER \\\"\${CMAKE_${lang}_COMPILER}\\\")\\n\"
92
+ ${extra_compiler_variables}
93
+ )"
94
+ )
95
+
96
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang}/CMakeLists.txt"
97
+ "${_cl_content}")
98
+ if(CMAKE_GENERATOR_INSTANCE)
99
+ set(_D_CMAKE_GENERATOR_INSTANCE "-DCMAKE_GENERATOR_INSTANCE:INTERNAL=${CMAKE_GENERATOR_INSTANCE}")
100
+ else()
101
+ set(_D_CMAKE_GENERATOR_INSTANCE "")
102
+ endif()
103
+ if(CMAKE_GENERATOR MATCHES "^(Xcode$|Green Hills MULTI$|Visual Studio)")
104
+ set(_D_CMAKE_MAKE_PROGRAM "")
105
+ else()
106
+ set(_D_CMAKE_MAKE_PROGRAM "-DCMAKE_MAKE_PROGRAM:FILEPATH=${CMAKE_MAKE_PROGRAM}")
107
+ endif()
108
+ if(CMAKE_TOOLCHAIN_FILE)
109
+ set(_D_CMAKE_TOOLCHAIN_FILE "-DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE}")
110
+ else()
111
+ set(_D_CMAKE_TOOLCHAIN_FILE "")
112
+ endif()
113
+ if(CMAKE_${lang}_PLATFORM)
114
+ set(_D_CMAKE_LANG_PLATFORM "-DCMAKE_${lang}_PLATFORM:STRING=${CMAKE_${lang}_PLATFORM}")
115
+ else()
116
+ set(_D_CMAKE_LANG_PLATFORM "")
117
+ endif()
118
+ execute_process(
119
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang}
120
+ COMMAND ${CMAKE_COMMAND} . -G ${CMAKE_GENERATOR}
121
+ -A "${CMAKE_GENERATOR_PLATFORM}"
122
+ -T "${CMAKE_GENERATOR_TOOLSET}"
123
+ ${_D_CMAKE_GENERATOR_INSTANCE}
124
+ ${_D_CMAKE_MAKE_PROGRAM}
125
+ ${_D_CMAKE_TOOLCHAIN_FILE}
126
+ ${_D_CMAKE_LANG_PLATFORM}
127
+ OUTPUT_VARIABLE _cl_output
128
+ ERROR_VARIABLE _cl_output
129
+ RESULT_VARIABLE _cl_result
130
+ )
131
+ include(${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/Check${lang}/result.cmake OPTIONAL)
132
+ if(CMAKE_${lang}_COMPILER AND "${_cl_result}" STREQUAL "0")
133
+ message(CONFIGURE_LOG
134
+ "${_desc} passed with the following output:\n"
135
+ "${_cl_output}\n")
136
+ set(_CHECK_COMPILER_STATUS CHECK_PASS)
137
+ else()
138
+ set(CMAKE_${lang}_COMPILER NOTFOUND)
139
+ set(_CHECK_COMPILER_STATUS CHECK_FAIL)
140
+ message(CONFIGURE_LOG
141
+ "${_desc} failed with the following output:\n"
142
+ "${_cl_output}\n")
143
+ endif()
144
+ message(${_CHECK_COMPILER_STATUS} "${CMAKE_${lang}_COMPILER}")
145
+ set(CMAKE_${lang}_COMPILER "${CMAKE_${lang}_COMPILER}" CACHE FILEPATH "${lang} compiler")
146
+ mark_as_advanced(CMAKE_${lang}_COMPILER)
147
+
148
+ if(CMAKE_${lang}_HOST_COMPILER)
149
+ message(STATUS "Looking for a ${lang} host compiler - ${CMAKE_${lang}_HOST_COMPILER}")
150
+ set(CMAKE_${lang}_HOST_COMPILER "${CMAKE_${lang}_HOST_COMPILER}" CACHE FILEPATH "${lang} host compiler")
151
+ mark_as_advanced(CMAKE_${lang}_HOST_COMPILER)
152
+ endif()
153
+
154
+ if(CMAKE_${lang}_PLATFORM)
155
+ set(CMAKE_${lang}_PLATFORM "${CMAKE_${lang}_PLATFORM}" CACHE STRING "${lang} platform")
156
+ mark_as_advanced(CMAKE_${lang}_PLATFORM)
157
+ endif()
158
+ endif()
159
+ endmacro()
160
+
161
+ endblock()
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckPrototypeDefinition.c.in ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @CHECK_PROTOTYPE_DEFINITION_HEADER@
2
+
3
+ static void cmakeRequireSymbol(int dummy, ...) {
4
+ (void) dummy;
5
+ }
6
+
7
+ static void checkSymbol(void) {
8
+ #ifndef @CHECK_PROTOTYPE_DEFINITION_SYMBOL@
9
+ cmakeRequireSymbol(0, &@CHECK_PROTOTYPE_DEFINITION_SYMBOL@);
10
+ #endif
11
+ }
12
+
13
+ @CHECK_PROTOTYPE_DEFINITION_PROTO@ {
14
+ return @CHECK_PROTOTYPE_DEFINITION_RETURN@;
15
+ }
16
+
17
+ #ifdef __CLASSIC_C__
18
+ int main() {
19
+ int ac;
20
+ char*av[];
21
+ #else
22
+ int main(int ac, char *av[]) {
23
+ #endif
24
+ checkSymbol();
25
+ if (ac > 1000) {
26
+ return *av[0];
27
+ }
28
+ return 0;
29
+ }
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckTypeSize.c.in ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @headers@
2
+
3
+ #undef KEY
4
+ #if defined(__i386)
5
+ # define KEY '_','_','i','3','8','6'
6
+ #elif defined(__x86_64)
7
+ # define KEY '_','_','x','8','6','_','6','4'
8
+ #elif defined(__PPC64__)
9
+ # define KEY '_','_','P','P','C','6','4','_','_'
10
+ #elif defined(__ppc64__)
11
+ # define KEY '_','_','p','p','c','6','4','_','_'
12
+ #elif defined(__PPC__)
13
+ # define KEY '_','_','P','P','C','_','_'
14
+ #elif defined(__ppc__)
15
+ # define KEY '_','_','p','p','c','_','_'
16
+ #elif defined(__aarch64__)
17
+ # define KEY '_','_','a','a','r','c','h','6','4','_','_'
18
+ #elif defined(__ARM_ARCH_7A__)
19
+ # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
20
+ #elif defined(__ARM_ARCH_7S__)
21
+ # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
22
+ #endif
23
+
24
+ #define SIZE (sizeof(@type@))
25
+ static char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
26
+ ('0' + ((SIZE / 10000)%10)),
27
+ ('0' + ((SIZE / 1000)%10)),
28
+ ('0' + ((SIZE / 100)%10)),
29
+ ('0' + ((SIZE / 10)%10)),
30
+ ('0' + (SIZE % 10)),
31
+ ']',
32
+ #ifdef KEY
33
+ ' ','k','e','y','[', KEY, ']',
34
+ #endif
35
+ '\0'};
36
+
37
+ #ifdef __CLASSIC_C__
38
+ int main(argc, argv) int argc; char *argv[];
39
+ #else
40
+ int main(int argc, char *argv[])
41
+ #endif
42
+ {
43
+ int require = 0;
44
+ require += info_size[argc];
45
+ (void)argv;
46
+ return require;
47
+ }
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/ExternalProject.cmake ADDED
The diff for this file is too large to render. See raw diff
 
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FetchContent.cmake ADDED
The diff for this file is too large to render. See raw diff
 
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindBoost.cmake ADDED
The diff for this file is too large to render. See raw diff
 
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindCURL.cmake ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ FindCURL
6
+ --------
7
+
8
+ Find the native CURL headers and libraries.
9
+
10
+ .. versionadded:: 3.14
11
+ This module accept optional COMPONENTS to check supported features and
12
+ protocols:
13
+
14
+ ::
15
+
16
+ PROTOCOLS: ICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3
17
+ POP3S RTMP RTSP SCP SFTP SMB SMBS SMTP SMTPS TELNET TFTP
18
+ FEATURES: SSL IPv6 UnixSockets libz AsynchDNS IDN GSS-API PSL SPNEGO
19
+ Kerberos NTLM NTLM_WB TLS-SRP HTTP2 HTTPS-proxy
20
+
21
+ IMPORTED Targets
22
+ ^^^^^^^^^^^^^^^^
23
+
24
+ .. versionadded:: 3.12
25
+
26
+ This module defines :prop_tgt:`IMPORTED` target ``CURL::libcurl``, if
27
+ curl has been found.
28
+
29
+ Result Variables
30
+ ^^^^^^^^^^^^^^^^
31
+
32
+ This module defines the following variables:
33
+
34
+ ``CURL_FOUND``
35
+ "True" if ``curl`` found.
36
+
37
+ ``CURL_INCLUDE_DIRS``
38
+ where to find ``curl``/``curl.h``, etc.
39
+
40
+ ``CURL_LIBRARIES``
41
+ List of libraries when using ``curl``.
42
+
43
+ ``CURL_VERSION_STRING``
44
+ The version of ``curl`` found.
45
+
46
+ .. versionadded:: 3.13
47
+ Debug and Release variants are found separately.
48
+
49
+ CURL CMake
50
+ ^^^^^^^^^^
51
+
52
+ .. versionadded:: 3.17
53
+
54
+ If CURL was built using the CMake buildsystem then it provides its own
55
+ ``CURLConfig.cmake`` file for use with the :command:`find_package` command's
56
+ config mode. This module looks for this file and, if found,
57
+ returns its results with no further action.
58
+
59
+ Set ``CURL_NO_CURL_CMAKE`` to ``ON`` to disable this search.
60
+
61
+ Hints
62
+ ^^^^^
63
+
64
+ ``CURL_USE_STATIC_LIBS``
65
+
66
+ .. versionadded:: 3.28
67
+
68
+ Set to ``TRUE`` to use static libraries.
69
+
70
+ This is meaningful only when CURL is not found via its
71
+ CMake Package Configuration file.
72
+
73
+ #]=======================================================================]
74
+
75
+ cmake_policy(PUSH)
76
+ cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
77
+
78
+ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
79
+
80
+ if(NOT CURL_NO_CURL_CMAKE)
81
+ # do a find package call to specifically look for the CMake version
82
+ # of curl
83
+ find_package(CURL QUIET NO_MODULE)
84
+ mark_as_advanced(CURL_DIR)
85
+
86
+ # if we found the CURL cmake package then we are done, and
87
+ # can print what we found and return.
88
+ if(CURL_FOUND)
89
+ find_package_handle_standard_args(CURL HANDLE_COMPONENTS CONFIG_MODE)
90
+ # The upstream curl package sets CURL_VERSION, not CURL_VERSION_STRING.
91
+ set(CURL_VERSION_STRING "${CURL_VERSION}")
92
+
93
+ cmake_policy(POP)
94
+ return()
95
+ endif()
96
+ endif()
97
+
98
+ find_package(PkgConfig QUIET)
99
+ if(PKG_CONFIG_FOUND)
100
+ pkg_check_modules(PC_CURL QUIET libcurl)
101
+ if(PC_CURL_FOUND)
102
+ pkg_get_variable(CURL_SUPPORTED_PROTOCOLS_STRING libcurl supported_protocols)
103
+ string(REPLACE " " ";" CURL_SUPPORTED_PROTOCOLS "${CURL_SUPPORTED_PROTOCOLS_STRING}")
104
+ pkg_get_variable(CURL_SUPPORTED_FEATURES_STRING libcurl supported_features)
105
+ string(REPLACE " " ";" CURL_SUPPORTED_FEATURES "${CURL_SUPPORTED_FEATURES_STRING}")
106
+ endif()
107
+ endif()
108
+
109
+ # Look for the header file.
110
+ find_path(CURL_INCLUDE_DIR
111
+ NAMES curl/curl.h
112
+ HINTS ${PC_CURL_INCLUDE_DIRS})
113
+ mark_as_advanced(CURL_INCLUDE_DIR)
114
+
115
+ if(NOT CURL_LIBRARY)
116
+ # Look for the library (sorted from most current/relevant entry to least).
117
+ find_library(CURL_LIBRARY_RELEASE NAMES
118
+ curl
119
+ # Windows MSVC prebuilts:
120
+ curllib
121
+ libcurl_imp
122
+ curllib_static
123
+ # Windows older "Win32 - MSVC" prebuilts (libcurl.lib, e.g. libcurl-7.15.5-win32-msvc.zip):
124
+ libcurl
125
+ # Some Windows prebuilt versions distribute `libcurl_a.lib` instead of `libcurl.lib`
126
+ libcurl_a
127
+ NAMES_PER_DIR
128
+ HINTS ${PC_CURL_LIBRARY_DIRS}
129
+ )
130
+ mark_as_advanced(CURL_LIBRARY_RELEASE)
131
+
132
+ find_library(CURL_LIBRARY_DEBUG NAMES
133
+ # Windows MSVC CMake builds in debug configuration on vcpkg:
134
+ libcurl-d_imp
135
+ libcurl-d
136
+ NAMES_PER_DIR
137
+ HINTS ${PC_CURL_LIBRARY_DIRS}
138
+ )
139
+ mark_as_advanced(CURL_LIBRARY_DEBUG)
140
+
141
+ include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
142
+ select_library_configurations(CURL)
143
+ endif()
144
+
145
+ if(CURL_INCLUDE_DIR)
146
+ foreach(_curl_version_header curlver.h curl.h)
147
+ if(EXISTS "${CURL_INCLUDE_DIR}/curl/${_curl_version_header}")
148
+ file(STRINGS "${CURL_INCLUDE_DIR}/curl/${_curl_version_header}" curl_version_str REGEX "^#define[\t ]+LIBCURL_VERSION[\t ]+\".*\"")
149
+
150
+ string(REGEX REPLACE "^#define[\t ]+LIBCURL_VERSION[\t ]+\"([^\"]*)\".*" "\\1" CURL_VERSION_STRING "${curl_version_str}")
151
+ unset(curl_version_str)
152
+ break()
153
+ endif()
154
+ endforeach()
155
+ endif()
156
+
157
+ if(CURL_FIND_COMPONENTS)
158
+ set(CURL_KNOWN_PROTOCOLS ICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS POP3 POP3S RTMP RTSP SCP SFTP SMB SMBS SMTP SMTPS TELNET TFTP)
159
+ set(CURL_KNOWN_FEATURES SSL IPv6 UnixSockets libz AsynchDNS IDN GSS-API PSL SPNEGO Kerberos NTLM NTLM_WB TLS-SRP HTTP2 HTTPS-proxy)
160
+ foreach(component IN LISTS CURL_KNOWN_PROTOCOLS CURL_KNOWN_FEATURES)
161
+ set(CURL_${component}_FOUND FALSE)
162
+ endforeach()
163
+ if(NOT PC_CURL_FOUND)
164
+ find_program(CURL_CONFIG_EXECUTABLE NAMES curl-config)
165
+ if(CURL_CONFIG_EXECUTABLE)
166
+ execute_process(COMMAND ${CURL_CONFIG_EXECUTABLE} --version
167
+ OUTPUT_VARIABLE CURL_CONFIG_VERSION_STRING
168
+ ERROR_QUIET
169
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
170
+ execute_process(COMMAND ${CURL_CONFIG_EXECUTABLE} --feature
171
+ OUTPUT_VARIABLE CURL_CONFIG_FEATURES_STRING
172
+ ERROR_QUIET
173
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
174
+ string(REPLACE "\n" ";" CURL_SUPPORTED_FEATURES "${CURL_CONFIG_FEATURES_STRING}")
175
+ execute_process(COMMAND ${CURL_CONFIG_EXECUTABLE} --protocols
176
+ OUTPUT_VARIABLE CURL_CONFIG_PROTOCOLS_STRING
177
+ ERROR_QUIET
178
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
179
+ string(REPLACE "\n" ";" CURL_SUPPORTED_PROTOCOLS "${CURL_CONFIG_PROTOCOLS_STRING}")
180
+ endif()
181
+
182
+ endif()
183
+ foreach(component IN LISTS CURL_FIND_COMPONENTS)
184
+ list(FIND CURL_KNOWN_PROTOCOLS ${component} _found)
185
+ if(NOT _found EQUAL -1)
186
+ list(FIND CURL_SUPPORTED_PROTOCOLS ${component} _found)
187
+ if(NOT _found EQUAL -1)
188
+ set(CURL_${component}_FOUND TRUE)
189
+ elseif(CURL_FIND_REQUIRED)
190
+ message(FATAL_ERROR "CURL: Required protocol ${component} is not found")
191
+ endif()
192
+ else()
193
+ list(FIND CURL_SUPPORTED_FEATURES ${component} _found)
194
+ if(NOT _found EQUAL -1)
195
+ set(CURL_${component}_FOUND TRUE)
196
+ elseif(CURL_FIND_REQUIRED)
197
+ message(FATAL_ERROR "CURL: Required feature ${component} is not found")
198
+ endif()
199
+ endif()
200
+ endforeach()
201
+ endif()
202
+
203
+ find_package_handle_standard_args(CURL
204
+ REQUIRED_VARS CURL_LIBRARY CURL_INCLUDE_DIR
205
+ VERSION_VAR CURL_VERSION_STRING
206
+ HANDLE_COMPONENTS)
207
+
208
+ if(CURL_FOUND)
209
+ set(CURL_LIBRARIES ${CURL_LIBRARY})
210
+ set(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIR})
211
+
212
+ if(NOT TARGET CURL::libcurl)
213
+ add_library(CURL::libcurl UNKNOWN IMPORTED)
214
+ set_target_properties(CURL::libcurl PROPERTIES
215
+ INTERFACE_INCLUDE_DIRECTORIES "${CURL_INCLUDE_DIRS}")
216
+
217
+ if(CURL_USE_STATIC_LIBS)
218
+ set_property(TARGET CURL::libcurl APPEND PROPERTY
219
+ INTERFACE_COMPILE_DEFINITIONS "CURL_STATICLIB")
220
+ endif()
221
+
222
+ if(EXISTS "${CURL_LIBRARY}")
223
+ set_target_properties(CURL::libcurl PROPERTIES
224
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
225
+ IMPORTED_LOCATION "${CURL_LIBRARY}")
226
+ endif()
227
+ if(CURL_LIBRARY_RELEASE)
228
+ set_property(TARGET CURL::libcurl APPEND PROPERTY
229
+ IMPORTED_CONFIGURATIONS RELEASE)
230
+ set_target_properties(CURL::libcurl PROPERTIES
231
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
232
+ IMPORTED_LOCATION_RELEASE "${CURL_LIBRARY_RELEASE}")
233
+ endif()
234
+ if(CURL_LIBRARY_DEBUG)
235
+ set_property(TARGET CURL::libcurl APPEND PROPERTY
236
+ IMPORTED_CONFIGURATIONS DEBUG)
237
+ set_target_properties(CURL::libcurl PROPERTIES
238
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C"
239
+ IMPORTED_LOCATION_DEBUG "${CURL_LIBRARY_DEBUG}")
240
+ endif()
241
+
242
+ if(CURL_USE_STATIC_LIBS AND MSVC)
243
+ set_target_properties(CURL::libcurl PROPERTIES
244
+ INTERFACE_LINK_LIBRARIES "normaliz.lib;ws2_32.lib;wldap32.lib")
245
+ endif()
246
+
247
+ endif()
248
+ endif()
249
+
250
+ cmake_policy(POP)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindGDAL.cmake ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ FindGDAL
6
+ --------
7
+
8
+ Find Geospatial Data Abstraction Library (GDAL).
9
+
10
+ IMPORTED Targets
11
+ ^^^^^^^^^^^^^^^^
12
+
13
+ .. versionadded:: 3.14
14
+
15
+ This module defines :prop_tgt:`IMPORTED` target ``GDAL::GDAL``
16
+ if GDAL has been found.
17
+
18
+ Result Variables
19
+ ^^^^^^^^^^^^^^^^
20
+
21
+ This module will set the following variables in your project:
22
+
23
+ ``GDAL_FOUND``
24
+ True if GDAL is found.
25
+ ``GDAL_INCLUDE_DIRS``
26
+ Include directories for GDAL headers.
27
+ ``GDAL_LIBRARIES``
28
+ Libraries to link to GDAL.
29
+ ``GDAL_VERSION``
30
+ .. versionadded:: 3.14
31
+ The version of GDAL found.
32
+
33
+ Cache variables
34
+ ^^^^^^^^^^^^^^^
35
+
36
+ The following cache variables may also be set:
37
+
38
+ ``GDAL_LIBRARY``
39
+ The libgdal library file.
40
+ ``GDAL_INCLUDE_DIR``
41
+ The directory containing ``gdal.h``.
42
+
43
+ Hints
44
+ ^^^^^
45
+
46
+ Set ``GDAL_DIR`` or ``GDAL_ROOT`` in the environment to specify the
47
+ GDAL installation prefix.
48
+
49
+ The following variables may be set to modify the search strategy:
50
+
51
+ ``FindGDAL_SKIP_GDAL_CONFIG``
52
+ If set, ``gdal-config`` will not be used. This can be useful if there are
53
+ GDAL libraries built with autotools (which provide the tool) and CMake (which
54
+ do not) in the same environment.
55
+ ``GDAL_ADDITIONAL_LIBRARY_VERSIONS``
56
+ Extra versions of library names to search for.
57
+ #]=======================================================================]
58
+
59
+ # $GDALDIR is an environment variable that would
60
+ # correspond to the ./configure --prefix=$GDAL_DIR
61
+ # used in building gdal.
62
+ #
63
+ # Created by Eric Wing. I'm not a gdal user, but OpenSceneGraph uses it
64
+ # for osgTerrain so I whipped this module together for completeness.
65
+ # I actually don't know the conventions or where files are typically
66
+ # placed in distros.
67
+ # Any real gdal users are encouraged to correct this (but please don't
68
+ # break the OS X framework stuff when doing so which is what usually seems
69
+ # to happen).
70
+
71
+ # This makes the presumption that you are include gdal.h like
72
+ #
73
+ #include "gdal.h"
74
+
75
+ cmake_policy(PUSH)
76
+ cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
77
+
78
+ find_path(GDAL_INCLUDE_DIR gdal.h
79
+ HINTS
80
+ ENV GDAL_DIR
81
+ ENV GDAL_ROOT
82
+ PATH_SUFFIXES
83
+ include/gdal
84
+ include/GDAL
85
+ include
86
+ DOC "Path to the GDAL include directory"
87
+ )
88
+ mark_as_advanced(GDAL_INCLUDE_DIR)
89
+
90
+ if(UNIX AND NOT FindGDAL_SKIP_GDAL_CONFIG)
91
+ # Use gdal-config to obtain the library version (this should hopefully
92
+ # allow us to -lgdal1.x.y where x.y are correct version)
93
+ # For some reason, libgdal development packages do not contain
94
+ # libgdal.so...
95
+ find_program(GDAL_CONFIG gdal-config
96
+ HINTS
97
+ ENV GDAL_DIR
98
+ ENV GDAL_ROOT
99
+ PATH_SUFFIXES bin
100
+ DOC "Path to the gdal-config tool"
101
+ )
102
+ mark_as_advanced(GDAL_CONFIG)
103
+
104
+ if(GDAL_CONFIG)
105
+ execute_process(COMMAND ${GDAL_CONFIG} --libs OUTPUT_VARIABLE GDAL_CONFIG_LIBS)
106
+
107
+ if(GDAL_CONFIG_LIBS)
108
+ # treat the output as a command line and split it up
109
+ separate_arguments(args NATIVE_COMMAND "${GDAL_CONFIG_LIBS}")
110
+
111
+ # only consider libraries whose name matches this pattern
112
+ set(name_pattern "[gG][dD][aA][lL]")
113
+
114
+ # consider each entry as a possible library path, name, or parent directory
115
+ foreach(arg IN LISTS args)
116
+ # library name
117
+ if("${arg}" MATCHES "^-l(.*)$")
118
+ set(lib "${CMAKE_MATCH_1}")
119
+
120
+ # only consider libraries whose name matches the expected pattern
121
+ if("${lib}" MATCHES "${name_pattern}")
122
+ list(APPEND _gdal_lib "${lib}")
123
+ endif()
124
+ # library search path
125
+ elseif("${arg}" MATCHES "^-L(.*)$")
126
+ list(APPEND _gdal_libpath "${CMAKE_MATCH_1}")
127
+ # assume this is a full path to a library
128
+ elseif(IS_ABSOLUTE "${arg}" AND EXISTS "${arg}")
129
+ # extract the file name
130
+ get_filename_component(lib "${arg}" NAME)
131
+
132
+ # only consider libraries whose name matches the expected pattern
133
+ if(NOT "${lib}" MATCHES "${name_pattern}")
134
+ continue()
135
+ endif()
136
+
137
+ # extract the file directory
138
+ get_filename_component(dir "${arg}" DIRECTORY)
139
+
140
+ # remove library prefixes/suffixes
141
+ string(REGEX REPLACE "^(${CMAKE_SHARED_LIBRARY_PREFIX}|${CMAKE_STATIC_LIBRARY_PREFIX})" "" lib "${lib}")
142
+ string(REGEX REPLACE "(${CMAKE_SHARED_LIBRARY_SUFFIX}|${CMAKE_STATIC_LIBRARY_SUFFIX})$" "" lib "${lib}")
143
+
144
+ # use the file name and directory as hints
145
+ list(APPEND _gdal_libpath "${dir}")
146
+ list(APPEND _gdal_lib "${lib}")
147
+ endif()
148
+ endforeach()
149
+ endif()
150
+ endif()
151
+ endif()
152
+
153
+ # GDAL name its library when built with CMake as `gdal${major}${minor}`.
154
+ set(_gdal_versions
155
+ ${GDAL_ADDITIONAL_LIBRARY_VERSIONS} 3.0 2.4 2.3 2.2 2.1 2.0 1.11 1.10 1.9 1.8 1.7 1.6 1.5 1.4 1.3 1.2)
156
+
157
+ set(_gdal_libnames)
158
+ foreach (_gdal_version IN LISTS _gdal_versions)
159
+ string(REPLACE "." "" _gdal_version "${_gdal_version}")
160
+ list(APPEND _gdal_libnames "gdal${_gdal_version}" "GDAL${_gdal_version}")
161
+ endforeach ()
162
+ unset(_gdal_version)
163
+ unset(_gdal_versions)
164
+
165
+ find_library(GDAL_LIBRARY
166
+ NAMES ${_gdal_lib} ${_gdal_libnames} gdal gdald gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
167
+ HINTS
168
+ ENV GDAL_DIR
169
+ ENV GDAL_ROOT
170
+ ${_gdal_libpath}
171
+ PATH_SUFFIXES lib
172
+ DOC "Path to the GDAL library"
173
+ )
174
+ mark_as_advanced(GDAL_LIBRARY)
175
+ unset(_gdal_libnames)
176
+ unset(_gdal_lib)
177
+
178
+ if (EXISTS "${GDAL_INCLUDE_DIR}/gdal_version.h")
179
+ file(STRINGS "${GDAL_INCLUDE_DIR}/gdal_version.h" _gdal_version
180
+ REGEX "GDAL_RELEASE_NAME")
181
+ string(REGEX REPLACE ".*\"\(.*\)\"" "\\1" GDAL_VERSION "${_gdal_version}")
182
+ unset(_gdal_version)
183
+ else ()
184
+ set(GDAL_VERSION GDAL_VERSION-NOTFOUND)
185
+ endif ()
186
+
187
+ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
188
+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(GDAL
189
+ VERSION_VAR GDAL_VERSION
190
+ REQUIRED_VARS GDAL_LIBRARY GDAL_INCLUDE_DIR)
191
+
192
+ if (GDAL_FOUND)
193
+ set(GDAL_LIBRARIES ${GDAL_LIBRARY})
194
+ set(GDAL_INCLUDE_DIRS ${GDAL_INCLUDE_DIR})
195
+
196
+ if (NOT TARGET GDAL::GDAL)
197
+ add_library(GDAL::GDAL UNKNOWN IMPORTED)
198
+ set_target_properties(GDAL::GDAL PROPERTIES
199
+ IMPORTED_LOCATION "${GDAL_LIBRARY}"
200
+ INTERFACE_INCLUDE_DIRECTORIES "${GDAL_INCLUDE_DIR}")
201
+ endif ()
202
+ endif ()
203
+
204
+ cmake_policy(POP)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindKDE3.cmake ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ FindKDE3
6
+ --------
7
+
8
+ Find the KDE3 include and library dirs, KDE preprocessors and define a some macros
9
+
10
+
11
+
12
+ This module defines the following variables:
13
+
14
+ ``KDE3_DEFINITIONS``
15
+ compiler definitions required for compiling KDE software
16
+ ``KDE3_INCLUDE_DIR``
17
+ the KDE include directory
18
+ ``KDE3_INCLUDE_DIRS``
19
+ the KDE and the Qt include directory, for use with include_directories()
20
+ ``KDE3_LIB_DIR``
21
+ the directory where the KDE libraries are installed, for use with link_directories()
22
+ ``QT_AND_KDECORE_LIBS``
23
+ this contains both the Qt and the kdecore library
24
+ ``KDE3_DCOPIDL_EXECUTABLE``
25
+ the dcopidl executable
26
+ ``KDE3_DCOPIDL2CPP_EXECUTABLE``
27
+ the dcopidl2cpp executable
28
+ ``KDE3_KCFGC_EXECUTABLE``
29
+ the kconfig_compiler executable
30
+ ``KDE3_FOUND``
31
+ set to TRUE if all of the above has been found
32
+
33
+ The following user adjustable options are provided:
34
+
35
+ ``KDE3_BUILD_TESTS``
36
+ enable this to build KDE testcases
37
+
38
+ It also adds the following macros (from ``KDE3Macros.cmake``) ``SRCS_VAR`` is
39
+ always the variable which contains the list of source files for your
40
+ application or library.
41
+
42
+ KDE3_AUTOMOC(file1 ... fileN)
43
+
44
+ ::
45
+
46
+ Call this if you want to have automatic moc file handling.
47
+ This means if you include "foo.moc" in the source file foo.cpp
48
+ a moc file for the header foo.h will be created automatically.
49
+ You can set the property SKIP_AUTOMAKE using set_source_files_properties()
50
+ to exclude some files in the list from being processed.
51
+
52
+
53
+
54
+ KDE3_ADD_MOC_FILES(SRCS_VAR file1 ... fileN )
55
+
56
+ ::
57
+
58
+ If you don't use the KDE3_AUTOMOC() macro, for the files
59
+ listed here moc files will be created (named "foo.moc.cpp")
60
+
61
+
62
+
63
+ KDE3_ADD_DCOP_SKELS(SRCS_VAR header1.h ... headerN.h )
64
+
65
+ ::
66
+
67
+ Use this to generate DCOP skeletions from the listed headers.
68
+
69
+
70
+
71
+ KDE3_ADD_DCOP_STUBS(SRCS_VAR header1.h ... headerN.h )
72
+
73
+ ::
74
+
75
+ Use this to generate DCOP stubs from the listed headers.
76
+
77
+
78
+
79
+ KDE3_ADD_UI_FILES(SRCS_VAR file1.ui ... fileN.ui )
80
+
81
+ ::
82
+
83
+ Use this to add the Qt designer ui files to your application/library.
84
+
85
+
86
+
87
+ KDE3_ADD_KCFG_FILES(SRCS_VAR file1.kcfgc ... fileN.kcfgc )
88
+
89
+ ::
90
+
91
+ Use this to add KDE kconfig compiler files to your application/library.
92
+
93
+
94
+
95
+ KDE3_INSTALL_LIBTOOL_FILE(target)
96
+
97
+ ::
98
+
99
+ This will create and install a simple libtool file for the given target.
100
+
101
+
102
+
103
+ KDE3_ADD_EXECUTABLE(name file1 ... fileN )
104
+
105
+ ::
106
+
107
+ Currently identical to add_executable(), may provide some advanced
108
+ features in the future.
109
+
110
+
111
+
112
+ KDE3_ADD_KPART(name [WITH_PREFIX] file1 ... fileN )
113
+
114
+ ::
115
+
116
+ Create a KDE plugin (KPart, kioslave, etc.) from the given source files.
117
+ If WITH_PREFIX is given, the resulting plugin will have the prefix "lib",
118
+ otherwise it won't.
119
+ It creates and installs an appropriate libtool la-file.
120
+
121
+
122
+
123
+ KDE3_ADD_KDEINIT_EXECUTABLE(name file1 ... fileN )
124
+
125
+ ::
126
+
127
+ Create a KDE application in the form of a module loadable via kdeinit.
128
+ A library named kdeinit_<name> will be created and a small executable
129
+ which links to it.
130
+
131
+
132
+
133
+ The option KDE3_ENABLE_FINAL to enable all-in-one compilation is no
134
+ longer supported.
135
+
136
+
137
+
138
+ Author: Alexander Neundorf <neundorf@kde.org>
139
+ #]=======================================================================]
140
+
141
+ if(NOT UNIX AND KDE3_FIND_REQUIRED)
142
+ message(FATAL_ERROR "Compiling KDE3 applications and libraries under Windows is not supported")
143
+ endif()
144
+
145
+ # If Qt4 has already been found, fail.
146
+ if(QT4_FOUND)
147
+ if(KDE3_FIND_REQUIRED)
148
+ message( FATAL_ERROR "KDE3/Qt3 and Qt4 cannot be used together in one project.")
149
+ else()
150
+ if(NOT KDE3_FIND_QUIETLY)
151
+ message( STATUS "KDE3/Qt3 and Qt4 cannot be used together in one project.")
152
+ endif()
153
+ return()
154
+ endif()
155
+ endif()
156
+
157
+
158
+ set(QT_MT_REQUIRED TRUE)
159
+ #set(QT_MIN_VERSION "3.0.0")
160
+
161
+ #this line includes FindQt.cmake, which searches the Qt library and headers
162
+ if(KDE3_FIND_REQUIRED)
163
+ set(_REQ_STRING_KDE3 "REQUIRED")
164
+ endif()
165
+
166
+ find_package(Qt3 ${_REQ_STRING_KDE3})
167
+ find_package(X11 ${_REQ_STRING_KDE3})
168
+
169
+
170
+ #now try to find some kde stuff
171
+ find_program(KDECONFIG_EXECUTABLE NAMES kde-config
172
+ HINTS
173
+ $ENV{KDEDIR}/bin
174
+ PATHS
175
+ /opt/kde3/bin
176
+ /opt/kde/bin
177
+ )
178
+
179
+ set(KDE3PREFIX)
180
+ if(KDECONFIG_EXECUTABLE)
181
+ execute_process(COMMAND ${KDECONFIG_EXECUTABLE} --version
182
+ OUTPUT_VARIABLE kde_config_version )
183
+
184
+ string(REGEX MATCH "KDE: .\\." kde_version "${kde_config_version}")
185
+ if ("${kde_version}" MATCHES "KDE: 3\\.")
186
+ execute_process(COMMAND ${KDECONFIG_EXECUTABLE} --prefix
187
+ OUTPUT_VARIABLE kdedir )
188
+ string(REPLACE "\n" "" KDE3PREFIX "${kdedir}")
189
+
190
+ endif ()
191
+ endif()
192
+
193
+
194
+
195
+ # at first the KDE include directory
196
+ # kpassdlg.h comes from kdeui and doesn't exist in KDE4 anymore
197
+ find_path(KDE3_INCLUDE_DIR kpassdlg.h
198
+ HINTS
199
+ $ENV{KDEDIR}/include
200
+ ${KDE3PREFIX}/include
201
+ PATHS
202
+ /opt/kde3/include
203
+ /opt/kde/include
204
+ PATH_SUFFIXES include/kde
205
+ )
206
+
207
+ #now the KDE library directory
208
+ find_library(KDE3_KDECORE_LIBRARY NAMES kdecore
209
+ HINTS
210
+ $ENV{KDEDIR}/lib
211
+ ${KDE3PREFIX}/lib
212
+ PATHS
213
+ /opt/kde3/lib
214
+ /opt/kde/lib
215
+ )
216
+
217
+ set(QT_AND_KDECORE_LIBS ${QT_LIBRARIES} ${KDE3_KDECORE_LIBRARY})
218
+
219
+ get_filename_component(KDE3_LIB_DIR ${KDE3_KDECORE_LIBRARY} PATH )
220
+
221
+ if(NOT KDE3_LIBTOOL_DIR)
222
+ if(KDE3_KDECORE_LIBRARY MATCHES lib64)
223
+ set(KDE3_LIBTOOL_DIR /lib64/kde3)
224
+ elseif(KDE3_KDECORE_LIBRARY MATCHES libx32)
225
+ set(KDE3_LIBTOOL_DIR /libx32/kde3)
226
+ else()
227
+ set(KDE3_LIBTOOL_DIR /lib/kde3)
228
+ endif()
229
+ endif()
230
+
231
+ #now search for the dcop utilities
232
+ find_program(KDE3_DCOPIDL_EXECUTABLE NAMES dcopidl
233
+ HINTS
234
+ $ENV{KDEDIR}/bin
235
+ ${KDE3PREFIX}/bin
236
+ PATHS
237
+ /opt/kde3/bin
238
+ /opt/kde/bin
239
+ )
240
+
241
+ find_program(KDE3_DCOPIDL2CPP_EXECUTABLE NAMES dcopidl2cpp
242
+ HINTS
243
+ $ENV{KDEDIR}/bin
244
+ ${KDE3PREFIX}/bin
245
+ PATHS
246
+ /opt/kde3/bin
247
+ /opt/kde/bin
248
+ )
249
+
250
+ find_program(KDE3_KCFGC_EXECUTABLE NAMES kconfig_compiler
251
+ HINTS
252
+ $ENV{KDEDIR}/bin
253
+ ${KDE3PREFIX}/bin
254
+ PATHS
255
+ /opt/kde3/bin
256
+ /opt/kde/bin
257
+ )
258
+
259
+
260
+ #SET KDE3_FOUND
261
+ if (KDE3_INCLUDE_DIR AND KDE3_LIB_DIR AND KDE3_DCOPIDL_EXECUTABLE AND KDE3_DCOPIDL2CPP_EXECUTABLE AND KDE3_KCFGC_EXECUTABLE)
262
+ set(KDE3_FOUND TRUE)
263
+ else ()
264
+ set(KDE3_FOUND FALSE)
265
+ endif ()
266
+
267
+ # add some KDE specific stuff
268
+ set(KDE3_DEFINITIONS -DQT_CLEAN_NAMESPACE -D_GNU_SOURCE)
269
+
270
+ # set compiler flags only if KDE3 has actually been found
271
+ if(KDE3_FOUND)
272
+ set(_KDE3_USE_FLAGS FALSE)
273
+ if(CMAKE_COMPILER_IS_GNUCXX)
274
+ set(_KDE3_USE_FLAGS TRUE) # use flags for gnu compiler
275
+ execute_process(COMMAND ${CMAKE_CXX_COMPILER} --version
276
+ OUTPUT_VARIABLE out)
277
+ # gnu gcc 2.96 does not work with flags
278
+ # I guess 2.95 also doesn't then
279
+ if("${out}" MATCHES "2.9[56]")
280
+ set(_KDE3_USE_FLAGS FALSE)
281
+ endif()
282
+ endif()
283
+
284
+ #only on linux, but NOT e.g. on FreeBSD:
285
+ if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND _KDE3_USE_FLAGS)
286
+ set (KDE3_DEFINITIONS ${KDE3_DEFINITIONS} -D_XOPEN_SOURCE=500 -D_BSD_SOURCE)
287
+ set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
288
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-exceptions -fno-check-new -fno-common")
289
+ endif()
290
+
291
+ # works on FreeBSD, NOT tested on NetBSD and OpenBSD
292
+ if (CMAKE_SYSTEM_NAME MATCHES BSD AND _KDE3_USE_FLAGS)
293
+ set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
294
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common")
295
+ endif ()
296
+
297
+ # if no special buildtype is selected, add -O2 as default optimization
298
+ if (NOT CMAKE_BUILD_TYPE AND _KDE3_USE_FLAGS)
299
+ set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
300
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
301
+ endif ()
302
+
303
+ #set(CMAKE_SHARED_LINKER_FLAGS "-avoid-version -module -Wl,--no-undefined -Wl,--allow-shlib-undefined")
304
+ #set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc")
305
+ #set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc")
306
+ endif()
307
+
308
+
309
+ # KDE3Macros.cmake contains all the KDE specific macros
310
+ include(${CMAKE_CURRENT_LIST_DIR}/KDE3Macros.cmake)
311
+
312
+
313
+ macro (KDE3_PRINT_RESULTS)
314
+ if(KDE3_INCLUDE_DIR)
315
+ message(STATUS "Found KDE3 include dir: ${KDE3_INCLUDE_DIR}")
316
+ else()
317
+ message(STATUS "Didn't find KDE3 headers")
318
+ endif()
319
+
320
+ if(KDE3_LIB_DIR)
321
+ message(STATUS "Found KDE3 library dir: ${KDE3_LIB_DIR}")
322
+ else()
323
+ message(STATUS "Didn't find KDE3 core library")
324
+ endif()
325
+
326
+ if(KDE3_DCOPIDL_EXECUTABLE)
327
+ message(STATUS "Found KDE3 dcopidl preprocessor: ${KDE3_DCOPIDL_EXECUTABLE}")
328
+ else()
329
+ message(STATUS "Didn't find the KDE3 dcopidl preprocessor")
330
+ endif()
331
+
332
+ if(KDE3_DCOPIDL2CPP_EXECUTABLE)
333
+ message(STATUS "Found KDE3 dcopidl2cpp preprocessor: ${KDE3_DCOPIDL2CPP_EXECUTABLE}")
334
+ else()
335
+ message(STATUS "Didn't find the KDE3 dcopidl2cpp preprocessor")
336
+ endif()
337
+
338
+ if(KDE3_KCFGC_EXECUTABLE)
339
+ message(STATUS "Found KDE3 kconfig_compiler preprocessor: ${KDE3_KCFGC_EXECUTABLE}")
340
+ else()
341
+ message(STATUS "Didn't find the KDE3 kconfig_compiler preprocessor")
342
+ endif()
343
+
344
+ endmacro ()
345
+
346
+
347
+ if (KDE3_FIND_REQUIRED AND NOT KDE3_FOUND)
348
+ #bail out if something wasn't found
349
+ KDE3_PRINT_RESULTS()
350
+ message(FATAL_ERROR "Could NOT find everything required for compiling KDE 3 programs")
351
+
352
+ endif ()
353
+
354
+
355
+ if (NOT KDE3_FIND_QUIETLY)
356
+ KDE3_PRINT_RESULTS()
357
+ endif ()
358
+
359
+ #add the found Qt and KDE include directories to the current include path
360
+ set(KDE3_INCLUDE_DIRS ${QT_INCLUDE_DIR} ${KDE3_INCLUDE_DIR})
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindLAPACK.cmake ADDED
@@ -0,0 +1,815 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ FindLAPACK
6
+ ----------
7
+
8
+ Find Linear Algebra PACKage (LAPACK) library
9
+
10
+ This module finds an installed Fortran library that implements the
11
+ `LAPACK linear-algebra interface`_.
12
+
13
+ At least one of the ``C``, ``CXX``, or ``Fortran`` languages must be enabled.
14
+
15
+ .. _`LAPACK linear-algebra interface`: https://netlib.org/lapack/
16
+
17
+ Input Variables
18
+ ^^^^^^^^^^^^^^^
19
+
20
+ The following variables may be set to influence this module's behavior:
21
+
22
+ ``BLA_STATIC``
23
+ if ``ON`` use static linkage
24
+
25
+ ``BLA_VENDOR``
26
+ Set to one of the :ref:`BLAS/LAPACK Vendors` to search for BLAS only
27
+ from the specified vendor. If not set, all vendors are considered.
28
+
29
+ ``BLA_F95``
30
+ if ``ON`` tries to find the BLAS95/LAPACK95 interfaces
31
+
32
+ ``BLA_PREFER_PKGCONFIG``
33
+ .. versionadded:: 3.20
34
+
35
+ if set ``pkg-config`` will be used to search for a LAPACK library first
36
+ and if one is found that is preferred
37
+
38
+ ``BLA_PKGCONFIG_LAPACK``
39
+ .. versionadded:: 3.25
40
+
41
+ If set, the ``pkg-config`` method will look for this module name instead of
42
+ just ``lapack``.
43
+
44
+
45
+ ``BLA_SIZEOF_INTEGER``
46
+ .. versionadded:: 3.22
47
+
48
+ Specify the BLAS/LAPACK library integer size:
49
+
50
+ ``4``
51
+ Search for a BLAS/LAPACK with 32-bit integer interfaces.
52
+ ``8``
53
+ Search for a BLAS/LAPACK with 64-bit integer interfaces.
54
+ ``ANY``
55
+ Search for any BLAS/LAPACK.
56
+ Most likely, a BLAS/LAPACK with 32-bit integer interfaces will be found.
57
+
58
+ Imported targets
59
+ ^^^^^^^^^^^^^^^^
60
+
61
+ This module defines the following :prop_tgt:`IMPORTED` targets:
62
+
63
+ ``LAPACK::LAPACK``
64
+ .. versionadded:: 3.18
65
+
66
+ The libraries to use for LAPACK, if found.
67
+
68
+ Result Variables
69
+ ^^^^^^^^^^^^^^^^
70
+
71
+ This module defines the following variables:
72
+
73
+ ``LAPACK_FOUND``
74
+ library implementing the LAPACK interface is found
75
+ ``LAPACK_LINKER_FLAGS``
76
+ uncached list of required linker flags (excluding ``-l`` and ``-L``).
77
+ ``LAPACK_LIBRARIES``
78
+ uncached list of libraries (using full path name) to link against
79
+ to use LAPACK
80
+ ``LAPACK95_LIBRARIES``
81
+ uncached list of libraries (using full path name) to link against
82
+ to use LAPACK95
83
+ ``LAPACK95_FOUND``
84
+ library implementing the LAPACK95 interface is found
85
+
86
+ Intel MKL
87
+ ^^^^^^^^^
88
+
89
+ To use the Intel MKL implementation of LAPACK, a project must enable at least
90
+ one of the ``C`` or ``CXX`` languages. Set ``BLA_VENDOR`` to an Intel MKL
91
+ variant either on the command-line as ``-DBLA_VENDOR=Intel10_64lp`` or in
92
+ project code:
93
+
94
+ .. code-block:: cmake
95
+
96
+ set(BLA_VENDOR Intel10_64lp)
97
+ find_package(LAPACK)
98
+
99
+ In order to build a project using Intel MKL, and end user must first
100
+ establish an Intel MKL environment. See the :module:`FindBLAS` module
101
+ section on :ref:`Intel MKL` for details.
102
+
103
+ #]=======================================================================]
104
+
105
+ # The approach follows that of the ``autoconf`` macro file, ``acx_lapack.m4``
106
+ # (distributed at http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html).
107
+
108
+ if(CMAKE_Fortran_COMPILER_LOADED)
109
+ include(${CMAKE_CURRENT_LIST_DIR}/CheckFortranFunctionExists.cmake)
110
+ else()
111
+ include(${CMAKE_CURRENT_LIST_DIR}/CheckFunctionExists.cmake)
112
+ endif()
113
+ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
114
+
115
+ function(_add_lapack_target)
116
+ if(LAPACK_FOUND AND NOT TARGET LAPACK::LAPACK)
117
+ add_library(LAPACK::LAPACK INTERFACE IMPORTED)
118
+
119
+ # Filter out redundant BLAS info and replace with the BLAS target
120
+ set(_lapack_libs "${LAPACK_LIBRARIES}")
121
+ set(_lapack_flags "${LAPACK_LINKER_FLAGS}")
122
+ if(TARGET BLAS::BLAS)
123
+ if(_lapack_libs AND BLAS_LIBRARIES)
124
+ foreach(_blas_lib IN LISTS BLAS_LIBRARIES)
125
+ list(REMOVE_ITEM _lapack_libs "${_blas_lib}")
126
+ endforeach()
127
+ endif()
128
+ if(_lapack_flags AND BLAS_LINKER_FLAGS)
129
+ foreach(_blas_flag IN LISTS BLAS_LINKER_FLAGS)
130
+ list(REMOVE_ITEM _lapack_flags "${_blas_flag}")
131
+ endforeach()
132
+ endif()
133
+ list(APPEND _lapack_libs BLAS::BLAS)
134
+ endif()
135
+ if(_lapack_libs)
136
+ set_target_properties(LAPACK::LAPACK PROPERTIES
137
+ INTERFACE_LINK_LIBRARIES "${_lapack_libs}"
138
+ )
139
+ endif()
140
+ if(_lapack_flags)
141
+ set_target_properties(LAPACK::LAPACK PROPERTIES
142
+ INTERFACE_LINK_OPTIONS "${_lapack_flags}"
143
+ )
144
+ endif()
145
+ endif()
146
+ endfunction()
147
+
148
+ # TODO: move this stuff to a separate module
149
+
150
+ function(CHECK_LAPACK_LIBRARIES LIBRARIES _prefix _name _flags _list _deps _addlibdir _subdirs _blas)
151
+ # This function checks for the existence of the combination of libraries
152
+ # given by _list. If the combination is found, this checks whether can link
153
+ # against that library combination using the name of a routine given by _name
154
+ # using the linker flags given by _flags. If the combination of libraries is
155
+ # found and passes the link test, ${LIBRARIES} is set to the list of complete
156
+ # library paths that have been found. Otherwise, ${LIBRARIES} is set to FALSE.
157
+
158
+ set(_libraries_work TRUE)
159
+ set(_libraries)
160
+ set(_combined_name)
161
+
162
+ if(BLA_STATIC)
163
+ if(WIN32)
164
+ set(CMAKE_FIND_LIBRARY_SUFFIXES .lib ${CMAKE_FIND_LIBRARY_SUFFIXES})
165
+ else()
166
+ set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
167
+ endif()
168
+ else()
169
+ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
170
+ # for ubuntu's libblas3gf and liblapack3gf packages
171
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES} .so.3gf)
172
+ endif()
173
+ endif()
174
+
175
+ set(_extaddlibdir "${_addlibdir}")
176
+ if(WIN32)
177
+ list(APPEND _extaddlibdir ENV LIB)
178
+ elseif(APPLE)
179
+ list(APPEND _extaddlibdir ENV DYLD_LIBRARY_PATH)
180
+ else()
181
+ list(APPEND _extaddlibdir ENV LD_LIBRARY_PATH)
182
+ endif()
183
+ list(APPEND _extaddlibdir "${CMAKE_C_IMPLICIT_LINK_DIRECTORIES}")
184
+
185
+ foreach(_library ${_list})
186
+ if(_library MATCHES "^-")
187
+ # Respect linker flags as-is (required by MKL)
188
+ list(APPEND _libraries "${_library}")
189
+ else()
190
+ string(REGEX REPLACE "[^A-Za-z0-9]" "_" _lib_var "${_library}")
191
+ string(APPEND _combined_name "_${_lib_var}")
192
+ if(NOT "${_deps}" STREQUAL "")
193
+ string(APPEND _combined_name "_deps")
194
+ endif()
195
+ if(_libraries_work)
196
+ find_library(${_prefix}_${_lib_var}_LIBRARY
197
+ NAMES ${_library}
198
+ NAMES_PER_DIR
199
+ PATHS ${_extaddlibdir}
200
+ PATH_SUFFIXES ${_subdirs}
201
+ )
202
+ mark_as_advanced(${_prefix}_${_lib_var}_LIBRARY)
203
+ list(APPEND _libraries ${${_prefix}_${_lib_var}_LIBRARY})
204
+ set(_libraries_work ${${_prefix}_${_lib_var}_LIBRARY})
205
+ endif()
206
+ endif()
207
+ endforeach()
208
+
209
+ foreach(_flag ${_flags})
210
+ string(REGEX REPLACE "[^A-Za-z0-9]" "_" _flag_var "${_flag}")
211
+ string(APPEND _combined_name "_${_flag_var}")
212
+ endforeach()
213
+ if(_libraries_work)
214
+ # Test this combination of libraries.
215
+ set(CMAKE_REQUIRED_LIBRARIES ${_flags} ${_libraries} ${_blas} ${_deps})
216
+ set(CMAKE_REQUIRED_QUIET ${LAPACK_FIND_QUIETLY})
217
+ if(CMAKE_Fortran_COMPILER_LOADED)
218
+ check_fortran_function_exists("${_name}" ${_prefix}${_combined_name}_WORKS)
219
+ else()
220
+ check_function_exists("${_name}_" ${_prefix}${_combined_name}_WORKS)
221
+ endif()
222
+ set(CMAKE_REQUIRED_LIBRARIES)
223
+ set(_libraries_work ${${_prefix}${_combined_name}_WORKS})
224
+ endif()
225
+
226
+ if(_libraries_work)
227
+ if("${_list}${_blas}" STREQUAL "")
228
+ set(_libraries "${LIBRARIES}-PLACEHOLDER-FOR-EMPTY-LIBRARIES")
229
+ else()
230
+ list(APPEND _libraries ${_blas} ${_deps})
231
+ endif()
232
+ else()
233
+ set(_libraries FALSE)
234
+ endif()
235
+ set(${LIBRARIES} "${_libraries}" PARENT_SCOPE)
236
+ endfunction()
237
+
238
+ macro(_lapack_find_dependency dep)
239
+ set(_lapack_quiet_arg)
240
+ if(LAPACK_FIND_QUIETLY)
241
+ set(_lapack_quiet_arg QUIET)
242
+ endif()
243
+ set(_lapack_required_arg)
244
+ if(LAPACK_FIND_REQUIRED)
245
+ set(_lapack_required_arg REQUIRED)
246
+ endif()
247
+ find_package(${dep} ${ARGN}
248
+ ${_lapack_quiet_arg}
249
+ ${_lapack_required_arg}
250
+ )
251
+ if (NOT ${dep}_FOUND)
252
+ set(LAPACK_NOT_FOUND_MESSAGE "LAPACK could not be found because dependency ${dep} could not be found.")
253
+ endif()
254
+
255
+ set(_lapack_required_arg)
256
+ set(_lapack_quiet_arg)
257
+ endmacro()
258
+
259
+ set(LAPACK_LINKER_FLAGS)
260
+ set(LAPACK_LIBRARIES)
261
+ set(LAPACK95_LIBRARIES)
262
+ set(_lapack_fphsa_req_var LAPACK_LIBRARIES)
263
+
264
+ # Check the language being used
265
+ if(NOT (CMAKE_C_COMPILER_LOADED OR CMAKE_CXX_COMPILER_LOADED OR CMAKE_Fortran_COMPILER_LOADED))
266
+ set(LAPACK_NOT_FOUND_MESSAGE
267
+ "FindLAPACK requires Fortran, C, or C++ to be enabled.")
268
+ endif()
269
+
270
+ if(NOT BLA_SIZEOF_INTEGER)
271
+ # in the reality we do not know which API of BLAS/LAPACK is masked in library
272
+ set(_lapack_sizeof_integer "ANY")
273
+ elseif((BLA_SIZEOF_INTEGER STREQUAL "ANY") OR
274
+ (BLA_SIZEOF_INTEGER STREQUAL "4") OR
275
+ (BLA_SIZEOF_INTEGER STREQUAL "8"))
276
+ set(_lapack_sizeof_integer ${BLA_SIZEOF_INTEGER})
277
+ else()
278
+ message(FATAL_ERROR "BLA_SIZEOF_INTEGER can have only <no value>, ANY, 4, or 8 values")
279
+ endif()
280
+
281
+ # Load BLAS
282
+ if(NOT LAPACK_NOT_FOUND_MESSAGE)
283
+ _lapack_find_dependency(BLAS)
284
+ endif()
285
+
286
+ # Search with pkg-config if specified
287
+ if(BLA_PREFER_PKGCONFIG)
288
+ if(NOT BLA_PKGCONFIG_LAPACK)
289
+ set(BLA_PKGCONFIG_LAPACK "lapack")
290
+ endif()
291
+ find_package(PkgConfig QUIET)
292
+ if(PKG_CONFIG_FOUND)
293
+ pkg_check_modules(PKGC_LAPACK QUIET ${BLA_PKGCONFIG_LAPACK})
294
+ if(PKGC_LAPACK_FOUND)
295
+ set(LAPACK_FOUND TRUE)
296
+ set(LAPACK_LIBRARIES "${PKGC_LAPACK_LINK_LIBRARIES}")
297
+ if (BLAS_LIBRARIES)
298
+ list(APPEND LAPACK_LIBRARIES "${BLAS_LIBRARIES}")
299
+ endif()
300
+ _add_lapack_target()
301
+ return()
302
+ endif()
303
+ endif()
304
+ endif()
305
+
306
+ # Search for different LAPACK distributions if BLAS is found
307
+ if(NOT LAPACK_NOT_FOUND_MESSAGE)
308
+ set(LAPACK_LINKER_FLAGS ${BLAS_LINKER_FLAGS})
309
+ if(NOT BLA_VENDOR)
310
+ if(NOT "$ENV{BLA_VENDOR}" STREQUAL "")
311
+ set(BLA_VENDOR "$ENV{BLA_VENDOR}")
312
+ else()
313
+ set(BLA_VENDOR "All")
314
+ endif()
315
+ endif()
316
+
317
+ # LAPACK in the Intel MKL 10+ library?
318
+ if(NOT LAPACK_LIBRARIES
319
+ AND (BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All")
320
+ AND (CMAKE_C_COMPILER_LOADED OR CMAKE_CXX_COMPILER_LOADED))
321
+ # System-specific settings
322
+ if(NOT WIN32)
323
+ set(LAPACK_mkl_LM "-lm")
324
+ set(LAPACK_mkl_LDL "-ldl")
325
+ endif()
326
+
327
+ _lapack_find_dependency(Threads)
328
+
329
+ if(_lapack_sizeof_integer EQUAL 8)
330
+ set(LAPACK_mkl_ILP_MODE "ilp64")
331
+ elseif(_lapack_sizeof_integer EQUAL 4)
332
+ set(LAPACK_mkl_ILP_MODE "lp64")
333
+ else()
334
+ if(BLA_VENDOR MATCHES "_64ilp")
335
+ set(LAPACK_mkl_ILP_MODE "ilp64")
336
+ else()
337
+ set(LAPACK_mkl_ILP_MODE "lp64")
338
+ endif()
339
+ endif()
340
+
341
+ set(LAPACK_SEARCH_LIBS "")
342
+
343
+ if(BLA_F95)
344
+ set(LAPACK_mkl_SEARCH_SYMBOL "cheev_f95")
345
+ set(_LAPACK_LIBRARIES LAPACK95_LIBRARIES)
346
+ set(_BLAS_LIBRARIES ${BLAS95_LIBRARIES})
347
+
348
+ # old
349
+ list(APPEND LAPACK_SEARCH_LIBS
350
+ "mkl_lapack95")
351
+ # new >= 10.3
352
+ list(APPEND LAPACK_SEARCH_LIBS
353
+ "mkl_intel_c")
354
+ list(APPEND LAPACK_SEARCH_LIBS
355
+ "mkl_lapack95_${LAPACK_mkl_ILP_MODE}")
356
+ else()
357
+ set(LAPACK_mkl_SEARCH_SYMBOL "cheev")
358
+ set(_LAPACK_LIBRARIES LAPACK_LIBRARIES)
359
+ set(_BLAS_LIBRARIES ${BLAS_LIBRARIES})
360
+
361
+ # old and new >= 10.3
362
+ list(APPEND LAPACK_SEARCH_LIBS
363
+ "mkl_lapack")
364
+ endif()
365
+
366
+ # MKL uses a multitude of partially platform-specific subdirectories:
367
+ if(BLA_VENDOR STREQUAL "Intel10_32")
368
+ set(LAPACK_mkl_ARCH_NAME "ia32")
369
+ else()
370
+ set(LAPACK_mkl_ARCH_NAME "intel64")
371
+ endif()
372
+ if(WIN32)
373
+ set(LAPACK_mkl_OS_NAME "win")
374
+ elseif(APPLE)
375
+ set(LAPACK_mkl_OS_NAME "mac")
376
+ else()
377
+ set(LAPACK_mkl_OS_NAME "lin")
378
+ endif()
379
+ if(DEFINED ENV{MKLROOT})
380
+ file(TO_CMAKE_PATH "$ENV{MKLROOT}" LAPACK_mkl_MKLROOT)
381
+ # If MKLROOT points to the subdirectory 'mkl', use the parent directory instead
382
+ # so we can better detect other relevant libraries in 'compiler' or 'tbb':
383
+ get_filename_component(LAPACK_mkl_MKLROOT_LAST_DIR "${LAPACK_mkl_MKLROOT}" NAME)
384
+ if(LAPACK_mkl_MKLROOT_LAST_DIR STREQUAL "mkl")
385
+ get_filename_component(LAPACK_mkl_MKLROOT "${LAPACK_mkl_MKLROOT}" DIRECTORY)
386
+ endif()
387
+ endif()
388
+ set(LAPACK_mkl_LIB_PATH_SUFFIXES
389
+ "compiler/lib" "compiler/lib/${LAPACK_mkl_ARCH_NAME}_${LAPACK_mkl_OS_NAME}"
390
+ "compiler/lib/${LAPACK_mkl_ARCH_NAME}"
391
+ "mkl/lib" "mkl/lib/${LAPACK_mkl_ARCH_NAME}_${LAPACK_mkl_OS_NAME}"
392
+ "mkl/lib/${LAPACK_mkl_ARCH_NAME}"
393
+ "lib" "lib/${LAPACK_mkl_ARCH_NAME}_${LAPACK_mkl_OS_NAME}"
394
+ "lib/${LAPACK_mkl_ARCH_NAME}"
395
+ )
396
+
397
+ # First try empty lapack libs (implicitly linked or automatic from BLAS)
398
+ if(NOT ${_LAPACK_LIBRARIES})
399
+ check_lapack_libraries(
400
+ ${_LAPACK_LIBRARIES}
401
+ LAPACK
402
+ ${LAPACK_mkl_SEARCH_SYMBOL}
403
+ ""
404
+ ""
405
+ "${CMAKE_THREAD_LIBS_INIT};${LAPACK_mkl_LM};${LAPACK_mkl_LDL}"
406
+ "${LAPACK_mkl_MKLROOT}"
407
+ "${LAPACK_mkl_LIB_PATH_SUFFIXES}"
408
+ "${_BLAS_LIBRARIES}"
409
+ )
410
+ if(LAPACK_WORKS AND NOT _BLAS_LIBRARIES)
411
+ # Give a more helpful "found" message
412
+ set(LAPACK_WORKS "implicitly linked")
413
+ set(_lapack_fphsa_req_var LAPACK_WORKS)
414
+ endif()
415
+ endif()
416
+
417
+ # Then try the search libs
418
+ foreach(_search ${LAPACK_SEARCH_LIBS})
419
+ string(REPLACE " " ";" _search ${_search})
420
+ if(NOT ${_LAPACK_LIBRARIES})
421
+ check_lapack_libraries(
422
+ ${_LAPACK_LIBRARIES}
423
+ LAPACK
424
+ ${LAPACK_mkl_SEARCH_SYMBOL}
425
+ ""
426
+ "${_search}"
427
+ "${CMAKE_THREAD_LIBS_INIT};${LAPACK_mkl_LM};${LAPACK_mkl_LDL}"
428
+ "${LAPACK_mkl_MKLROOT}"
429
+ "${LAPACK_mkl_LIB_PATH_SUFFIXES}"
430
+ "${_BLAS_LIBRARIES}"
431
+ )
432
+ endif()
433
+ endforeach()
434
+
435
+ unset(_search)
436
+ unset(LAPACK_mkl_ILP_MODE)
437
+ unset(LAPACK_mkl_SEARCH_SYMBOL)
438
+ unset(LAPACK_mkl_LM)
439
+ unset(LAPACK_mkl_LDL)
440
+ unset(LAPACK_mkl_MKLROOT)
441
+ unset(LAPACK_mkl_ARCH_NAME)
442
+ unset(LAPACK_mkl_OS_NAME)
443
+ unset(LAPACK_mkl_LIB_PATH_SUFFIXES)
444
+ endif()
445
+
446
+ # gotoblas? (http://www.tacc.utexas.edu/tacc-projects/gotoblas2)
447
+ if(NOT LAPACK_LIBRARIES
448
+ AND (BLA_VENDOR STREQUAL "Goto" OR BLA_VENDOR STREQUAL "All"))
449
+ check_lapack_libraries(
450
+ LAPACK_LIBRARIES
451
+ LAPACK
452
+ cheev
453
+ ""
454
+ "goto2"
455
+ ""
456
+ ""
457
+ ""
458
+ "${BLAS_LIBRARIES}"
459
+ )
460
+ endif()
461
+
462
+ # FlexiBLAS? (http://www.mpi-magdeburg.mpg.de/mpcsc/software/FlexiBLAS/)
463
+ if(NOT LAPACK_LIBRARIES
464
+ AND (BLA_VENDOR STREQUAL "FlexiBLAS" OR BLA_VENDOR STREQUAL "All"))
465
+ set(_lapack_flexiblas_lib "flexiblas")
466
+
467
+ if(_lapack_sizeof_integer EQUAL 8)
468
+ string(APPEND _lapack_flexiblas_lib "64")
469
+ endif()
470
+
471
+ check_lapack_libraries(
472
+ LAPACK_LIBRARIES
473
+ LAPACK
474
+ cheev
475
+ ""
476
+ "${_lapack_flexiblas_lib}"
477
+ ""
478
+ ""
479
+ ""
480
+ "${BLAS_LIBRARIES}"
481
+ )
482
+
483
+ unset(_lapack_flexiblas_lib)
484
+ endif()
485
+
486
+ # OpenBLAS? (http://www.openblas.net)
487
+ if(NOT LAPACK_LIBRARIES
488
+ AND (BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All"))
489
+ set(_lapack_openblas_lib "openblas")
490
+
491
+ if(_lapack_sizeof_integer EQUAL 8)
492
+ if(MINGW)
493
+ string(APPEND _lapack_openblas_lib "_64")
494
+ else()
495
+ string(APPEND _lapack_openblas_lib "64")
496
+ endif()
497
+ endif()
498
+
499
+ check_lapack_libraries(
500
+ LAPACK_LIBRARIES
501
+ LAPACK
502
+ cheev
503
+ ""
504
+ "${_lapack_openblas_lib}"
505
+ ""
506
+ ""
507
+ ""
508
+ "${BLAS_LIBRARIES}"
509
+ )
510
+
511
+ unset(_lapack_openblas_lib)
512
+ endif()
513
+
514
+ # ArmPL? (https://developer.arm.com/tools-and-software/server-and-hpc/compile/arm-compiler-for-linux/arm-performance-libraries)
515
+ if(NOT LAPACK_LIBRARIES
516
+ AND (BLA_VENDOR MATCHES "Arm" OR BLA_VENDOR STREQUAL "All"))
517
+ # Check for 64bit Integer support
518
+ if(_lapack_sizeof_integer EQUAL 8)
519
+ set(LAPACK_armpl_LIB "armpl_ilp64")
520
+ elseif(_lapack_sizeof_integer EQUAL 4)
521
+ set(LAPACK_armpl_LIB "armpl_lp64")
522
+ else()
523
+ if(BLA_VENDOR MATCHES "_ilp64")
524
+ set(LAPACK_armpl_LIB "armpl_ilp64")
525
+ else()
526
+ set(LAPACK_armpl_LIB "armpl_lp64")
527
+ endif()
528
+ endif()
529
+
530
+ # Check for OpenMP support, VIA BLA_VENDOR of Arm_mp or Arm_ipl64_mp
531
+ if(BLA_VENDOR MATCHES "_mp")
532
+ string(APPEND LAPACK_armpl_LIB "_mp")
533
+ endif()
534
+
535
+ check_lapack_libraries(
536
+ LAPACK_LIBRARIES
537
+ LAPACK
538
+ cheev
539
+ ""
540
+ "${LAPACK_armpl_LIB}"
541
+ ""
542
+ ""
543
+ ""
544
+ "${BLAS_LIBRARIES}"
545
+ )
546
+ endif()
547
+
548
+ # FLAME's blis library? (https://github.com/flame/blis)
549
+ if(NOT LAPACK_LIBRARIES
550
+ AND (BLA_VENDOR STREQUAL "FLAME" OR BLA_VENDOR STREQUAL "All"))
551
+ if(_lapack_sizeof_integer EQUAL 8)
552
+ if(BLA_VENDOR STREQUAL "FLAME")
553
+ message(FATAL_ERROR "libFLAME does not support Int64 type")
554
+ endif()
555
+ else()
556
+ check_lapack_libraries(
557
+ LAPACK_LIBRARIES
558
+ LAPACK
559
+ cheev
560
+ ""
561
+ "flame"
562
+ ""
563
+ ""
564
+ ""
565
+ "${BLAS_LIBRARIES}"
566
+ )
567
+ endif()
568
+ endif()
569
+
570
+ # AOCL? (https://developer.amd.com/amd-aocl/)
571
+ if(NOT LAPACK_LIBRARIES
572
+ AND (BLA_VENDOR MATCHES "AOCL" OR BLA_VENDOR STREQUAL "All"))
573
+ if(_lapack_sizeof_integer EQUAL 8)
574
+ set(_lapack_aocl_subdir "ILP64")
575
+ else()
576
+ set(_lapack_aocl_subdir "LP64")
577
+ endif()
578
+
579
+ check_lapack_libraries(
580
+ LAPACK_LIBRARIES
581
+ LAPACK
582
+ cheev
583
+ ""
584
+ "flame"
585
+ "-fopenmp"
586
+ ""
587
+ "${_lapack_aocl_subdir}"
588
+ "${BLAS_LIBRARIES}"
589
+ )
590
+ unset(_lapack_aocl_subdir)
591
+ endif()
592
+
593
+ # LAPACK in SCSL library? (SGI/Cray Scientific Library)
594
+ if(NOT LAPACK_LIBRARIES
595
+ AND (BLA_VENDOR MATCHES "SCSL" OR BLA_VENDOR STREQUAL "All"))
596
+ set(_lapack_scsl_lib "scs")
597
+
598
+ if(_lapack_sizeof_integer EQUAL 8)
599
+ string(APPEND _lapack_scsl_lib "_i8")
600
+ endif()
601
+ # Check for OpenMP support, VIA BLA_VENDOR of scs_mp
602
+ if(BLA_VENDOR MATCHES "_mp")
603
+ string(APPEND _lapack_scsl_lib "_mp")
604
+ endif()
605
+
606
+ check_lapack_libraries(
607
+ LAPACK_LIBRARIES
608
+ LAPACK
609
+ cheev
610
+ ""
611
+ "${_lapack_scsl_lib}"
612
+ ""
613
+ ""
614
+ ""
615
+ "${BLAS_LIBRARIES}"
616
+ )
617
+ unset(_lapack_scsl_lib)
618
+ endif()
619
+
620
+ # BLAS in acml library?
621
+ if(BLA_VENDOR MATCHES "ACML" OR BLA_VENDOR STREQUAL "All")
622
+ if(BLAS_LIBRARIES MATCHES ".+acml.+")
623
+ set(LAPACK_LIBRARIES ${BLAS_LIBRARIES})
624
+ endif()
625
+ endif()
626
+
627
+ # Apple LAPACK library?
628
+ if(NOT LAPACK_LIBRARIES
629
+ AND (BLA_VENDOR STREQUAL "Apple" OR BLA_VENDOR STREQUAL "All"))
630
+ if(_lapack_sizeof_integer EQUAL 8)
631
+ if(BLA_VENDOR STREQUAL "Apple")
632
+ message(FATAL_ERROR "Accelerate Framework does not support Int64 type")
633
+ endif()
634
+ else()
635
+ check_lapack_libraries(
636
+ LAPACK_LIBRARIES
637
+ LAPACK
638
+ cheev
639
+ ""
640
+ "Accelerate"
641
+ ""
642
+ ""
643
+ ""
644
+ "${BLAS_LIBRARIES}"
645
+ )
646
+ endif()
647
+ endif()
648
+
649
+ # Apple NAS (vecLib) library?
650
+ if(NOT LAPACK_LIBRARIES
651
+ AND (BLA_VENDOR STREQUAL "NAS" OR BLA_VENDOR STREQUAL "All"))
652
+ if(_lapack_sizeof_integer EQUAL 8)
653
+ if(BLA_VENDOR STREQUAL "NAS")
654
+ message(FATAL_ERROR "Accelerate Framework does not support Int64 type")
655
+ endif()
656
+ else()
657
+ check_lapack_libraries(
658
+ LAPACK_LIBRARIES
659
+ LAPACK
660
+ cheev
661
+ ""
662
+ "vecLib"
663
+ ""
664
+ ""
665
+ ""
666
+ "${BLAS_LIBRARIES}"
667
+ )
668
+ endif()
669
+ endif()
670
+
671
+ # Elbrus Math Library?
672
+ if(NOT LAPACK_LIBRARIES
673
+ AND (BLA_VENDOR MATCHES "EML" OR BLA_VENDOR STREQUAL "All"))
674
+ if(BLAS_LIBRARIES MATCHES "eml.+")
675
+ set(LAPACK_LIBRARIES ${BLAS_LIBRARIES})
676
+ endif()
677
+ endif()
678
+
679
+ # Fujitsu SSL2 Library?
680
+ if(NOT LAPACK_LIBRARIES
681
+ AND (BLA_VENDOR MATCHES "Fujitsu_SSL2" OR BLA_VENDOR STREQUAL "All"))
682
+ if(BLAS_LIBRARIES MATCHES "fjlapack.+")
683
+ set(LAPACK_LIBRARIES ${BLAS_LIBRARIES})
684
+ set(LAPACK_LINKER_FLAGS ${BLAS_LINKER_FLAGS})
685
+ endif()
686
+ endif()
687
+
688
+ # LAPACK in IBM ESSL library?
689
+ if(NOT LAPACK_LIBRARIES
690
+ AND (BLA_VENDOR MATCHES "IBMESSL" OR BLA_VENDOR STREQUAL "All"))
691
+ if(BLAS_LIBRARIES MATCHES "essl.+")
692
+ set(LAPACK_LIBRARIES ${BLAS_LIBRARIES})
693
+ endif()
694
+ endif()
695
+
696
+ # NVHPC Library?
697
+
698
+ if(NOT LAPACK_LIBRARIES
699
+ AND (BLA_VENDOR MATCHES "NVHPC" OR BLA_VENDOR STREQUAL "All"))
700
+ set(_lapack_nvhpc_lib "lapack")
701
+
702
+ if(_lapack_sizeof_integer EQUAL 8)
703
+ string(APPEND _lapack_nvhpc_lib "_ilp64")
704
+ elseif(_lapack_sizeof_integer EQUAL 4)
705
+ string(APPEND _lapack_nvhpc_lib "_lp64")
706
+ endif()
707
+ set(_lapack_nvhpc_flags)
708
+ if(";${CMAKE_C_COMPILER_ID};${CMAKE_CXX_COMPILER_ID};${CMAKE_Fortran_COMPILER_ID};" MATCHES ";(NVHPC|PGI);")
709
+ set(_lapack_nvhpc_flags "-fortranlibs")
710
+ endif()
711
+
712
+ check_lapack_libraries(
713
+ LAPACK_LIBRARIES
714
+ LAPACK
715
+ cheev
716
+ ""
717
+ "${_lapack_nvhpc_lib}"
718
+ "${_lapack_nvhpc_flags}"
719
+ ""
720
+ ""
721
+ "${BLAS_LIBRARIES}"
722
+ )
723
+
724
+ # an additional check for NVHPC 2020
725
+ # which does not have differentiation
726
+ # between lp64 and ilp64 modes
727
+ if(NOT LAPACK_LIBRARIES AND NOT _lapack_sizeof_integer EQUAL 8)
728
+ set(_lapack_nvhpc_lib "lapack")
729
+
730
+ check_lapack_libraries(
731
+ LAPACK_LIBRARIES
732
+ LAPACK
733
+ cheev
734
+ ""
735
+ "${_lapack_nvhpc_lib}"
736
+ "${_lapack_nvhpc_flags}"
737
+ ""
738
+ ""
739
+ "${BLAS_LIBRARIES}"
740
+ )
741
+ endif()
742
+
743
+ unset(_lapack_nvhpc_lib)
744
+ unset(_lapack_nvhpc_flags)
745
+ endif()
746
+
747
+ # libblastrampoline? (https://github.com/JuliaLinearAlgebra/libblastrampoline/tree/main)
748
+ if(NOT LAPACK_LIBRARIES
749
+ AND (BLA_VENDOR STREQUAL "libblastrampoline" OR BLA_VENDOR STREQUAL "All"))
750
+ if(BLAS_LIBRARIES MATCHES "blastrampoline.+")
751
+ set(LAPACK_LIBRARIES ${BLAS_LIBRARIES})
752
+ endif()
753
+ endif()
754
+
755
+ # Generic LAPACK library?
756
+ if(NOT LAPACK_LIBRARIES
757
+ AND (BLA_VENDOR STREQUAL "Generic"
758
+ OR BLA_VENDOR STREQUAL "ATLAS"
759
+ OR BLA_VENDOR STREQUAL "All"))
760
+ set(_lapack_generic_lib "lapack")
761
+ if(BLA_STATIC)
762
+ # We do not know for sure how the LAPACK reference implementation
763
+ # is built on this host. Guess typical dependencies.
764
+ set(_lapack_generic_deps "-lgfortran;-lm")
765
+ else()
766
+ set(_lapack_generic_deps "")
767
+ endif()
768
+
769
+ if(_lapack_sizeof_integer EQUAL 8)
770
+ string(APPEND _lapack_generic_lib "64")
771
+ endif()
772
+
773
+ check_lapack_libraries(
774
+ LAPACK_LIBRARIES
775
+ LAPACK
776
+ cheev
777
+ ""
778
+ "${_lapack_generic_lib}"
779
+ "${_lapack_generic_deps}"
780
+ ""
781
+ ""
782
+ "${BLAS_LIBRARIES}"
783
+ )
784
+
785
+ unset(_lapack_generic_deps)
786
+ unset(_lapack_generic_lib)
787
+ endif()
788
+ endif()
789
+
790
+ if(BLA_F95)
791
+ set(LAPACK_LIBRARIES "${LAPACK95_LIBRARIES}")
792
+ endif()
793
+
794
+ if(LAPACK_NOT_FOUND_MESSAGE)
795
+ set(LAPACK_NOT_FOUND_MESSAGE
796
+ REASON_FAILURE_MESSAGE ${LAPACK_NOT_FOUND_MESSAGE})
797
+ endif()
798
+ find_package_handle_standard_args(LAPACK REQUIRED_VARS ${_lapack_fphsa_req_var}
799
+ ${LAPACK_NOT_FOUND_MESSAGE})
800
+ unset(LAPACK_NOT_FOUND_MESSAGE)
801
+
802
+ if(BLA_F95)
803
+ set(LAPACK95_FOUND ${LAPACK_FOUND})
804
+ endif()
805
+
806
+ # On compilers that implicitly link LAPACK (such as ftn, cc, and CC on Cray HPC machines)
807
+ # we used a placeholder for empty LAPACK_LIBRARIES to get through our logic above.
808
+ if(LAPACK_LIBRARIES STREQUAL "LAPACK_LIBRARIES-PLACEHOLDER-FOR-EMPTY-LIBRARIES")
809
+ set(LAPACK_LIBRARIES "")
810
+ endif()
811
+
812
+ _add_lapack_target()
813
+ unset(_lapack_fphsa_req_var)
814
+ unset(_lapack_sizeof_integer)
815
+ unset(_LAPACK_LIBRARIES)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindLua.cmake ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ FindLua
6
+ -------
7
+
8
+ Locate Lua library.
9
+
10
+ .. versionadded:: 3.18
11
+ Support for Lua 5.4.
12
+
13
+ This module defines:
14
+
15
+ ``LUA_FOUND``
16
+ if false, do not try to link to Lua
17
+ ``LUA_LIBRARIES``
18
+ both lua and lualib
19
+ ``LUA_INCLUDE_DIR``
20
+ where to find lua.h
21
+ ``LUA_VERSION_STRING``
22
+ the version of Lua found
23
+ ``LUA_VERSION_MAJOR``
24
+ the major version of Lua
25
+ ``LUA_VERSION_MINOR``
26
+ the minor version of Lua
27
+ ``LUA_VERSION_PATCH``
28
+ the patch version of Lua
29
+
30
+ Note that the expected include convention is
31
+
32
+ ::
33
+
34
+ #include "lua.h"
35
+
36
+ and not
37
+
38
+ ::
39
+
40
+ #include <lua/lua.h>
41
+
42
+ This is because, the lua location is not standardized and may exist in
43
+ locations other than lua/
44
+ #]=======================================================================]
45
+
46
+ cmake_policy(PUSH) # Policies apply to functions at definition-time
47
+ cmake_policy(SET CMP0012 NEW) # For while(TRUE)
48
+ cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
49
+
50
+ unset(_lua_include_subdirs)
51
+ unset(_lua_library_names)
52
+ unset(_lua_append_versions)
53
+
54
+ # this is a function only to have all the variables inside go away automatically
55
+ function(_lua_get_versions)
56
+ set(LUA_VERSIONS5 5.4 5.3 5.2 5.1 5.0)
57
+
58
+ if (Lua_FIND_VERSION_EXACT)
59
+ if (Lua_FIND_VERSION_COUNT GREATER 1)
60
+ set(_lua_append_versions ${Lua_FIND_VERSION_MAJOR}.${Lua_FIND_VERSION_MINOR})
61
+ endif ()
62
+ elseif (Lua_FIND_VERSION)
63
+ # once there is a different major version supported this should become a loop
64
+ if (NOT Lua_FIND_VERSION_MAJOR GREATER 5)
65
+ if (Lua_FIND_VERSION_COUNT EQUAL 1)
66
+ set(_lua_append_versions ${LUA_VERSIONS5})
67
+ else ()
68
+ foreach (subver IN LISTS LUA_VERSIONS5)
69
+ if (NOT subver VERSION_LESS ${Lua_FIND_VERSION})
70
+ list(APPEND _lua_append_versions ${subver})
71
+ endif ()
72
+ endforeach ()
73
+ # New version -> Search for it (heuristic only! Defines in include might have changed)
74
+ if (NOT _lua_append_versions)
75
+ set(_lua_append_versions ${Lua_FIND_VERSION_MAJOR}.${Lua_FIND_VERSION_MINOR})
76
+ endif()
77
+ endif ()
78
+ endif ()
79
+ else ()
80
+ # once there is a different major version supported this should become a loop
81
+ set(_lua_append_versions ${LUA_VERSIONS5})
82
+ endif ()
83
+
84
+ if (LUA_Debug)
85
+ message(STATUS "Considering following Lua versions: ${_lua_append_versions}")
86
+ endif()
87
+
88
+ set(_lua_append_versions "${_lua_append_versions}" PARENT_SCOPE)
89
+ endfunction()
90
+
91
+ function(_lua_set_version_vars)
92
+ set(_lua_include_subdirs_raw "lua")
93
+
94
+ foreach (ver IN LISTS _lua_append_versions)
95
+ string(REGEX MATCH "^([0-9]+)\\.([0-9]+)$" _ver "${ver}")
96
+ list(APPEND _lua_include_subdirs_raw
97
+ lua${CMAKE_MATCH_1}${CMAKE_MATCH_2}
98
+ lua${CMAKE_MATCH_1}.${CMAKE_MATCH_2}
99
+ lua-${CMAKE_MATCH_1}.${CMAKE_MATCH_2}
100
+ )
101
+ endforeach ()
102
+
103
+ # Prepend "include/" to each path directly after the path
104
+ set(_lua_include_subdirs "include")
105
+ foreach (dir IN LISTS _lua_include_subdirs_raw)
106
+ list(APPEND _lua_include_subdirs "${dir}" "include/${dir}")
107
+ endforeach ()
108
+
109
+ set(_lua_include_subdirs "${_lua_include_subdirs}" PARENT_SCOPE)
110
+ endfunction(_lua_set_version_vars)
111
+
112
+ function(_lua_get_header_version)
113
+ unset(LUA_VERSION_STRING PARENT_SCOPE)
114
+ set(_hdr_file "${LUA_INCLUDE_DIR}/lua.h")
115
+
116
+ if (NOT EXISTS "${_hdr_file}")
117
+ return()
118
+ endif ()
119
+
120
+ # At least 5.[012] have different ways to express the version
121
+ # so all of them need to be tested. Lua 5.2 defines LUA_VERSION
122
+ # and LUA_RELEASE as joined by the C preprocessor, so avoid those.
123
+ file(STRINGS "${_hdr_file}" lua_version_strings
124
+ REGEX "^#define[ \t]+LUA_(RELEASE[ \t]+\"Lua [0-9]|VERSION([ \t]+\"Lua [0-9]|_[MR])).*")
125
+
126
+ string(REGEX REPLACE ".*;#define[ \t]+LUA_VERSION_MAJOR[ \t]+\"([0-9])\"[ \t]*;.*" "\\1" LUA_VERSION_MAJOR ";${lua_version_strings};")
127
+ if (LUA_VERSION_MAJOR MATCHES "^[0-9]+$")
128
+ string(REGEX REPLACE ".*;#define[ \t]+LUA_VERSION_MINOR[ \t]+\"([0-9])\"[ \t]*;.*" "\\1" LUA_VERSION_MINOR ";${lua_version_strings};")
129
+ string(REGEX REPLACE ".*;#define[ \t]+LUA_VERSION_RELEASE[ \t]+\"([0-9])\"[ \t]*;.*" "\\1" LUA_VERSION_PATCH ";${lua_version_strings};")
130
+ set(LUA_VERSION_STRING "${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}.${LUA_VERSION_PATCH}")
131
+ else ()
132
+ string(REGEX REPLACE ".*;#define[ \t]+LUA_RELEASE[ \t]+\"Lua ([0-9.]+)\"[ \t]*;.*" "\\1" LUA_VERSION_STRING ";${lua_version_strings};")
133
+ if (NOT LUA_VERSION_STRING MATCHES "^[0-9.]+$")
134
+ string(REGEX REPLACE ".*;#define[ \t]+LUA_VERSION[ \t]+\"Lua ([0-9.]+)\"[ \t]*;.*" "\\1" LUA_VERSION_STRING ";${lua_version_strings};")
135
+ endif ()
136
+ string(REGEX REPLACE "^([0-9]+)\\.[0-9.]*$" "\\1" LUA_VERSION_MAJOR "${LUA_VERSION_STRING}")
137
+ string(REGEX REPLACE "^[0-9]+\\.([0-9]+)[0-9.]*$" "\\1" LUA_VERSION_MINOR "${LUA_VERSION_STRING}")
138
+ string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]).*" "\\1" LUA_VERSION_PATCH "${LUA_VERSION_STRING}")
139
+ endif ()
140
+ foreach (ver IN LISTS _lua_append_versions)
141
+ if (ver STREQUAL "${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}")
142
+ set(LUA_VERSION_MAJOR ${LUA_VERSION_MAJOR} PARENT_SCOPE)
143
+ set(LUA_VERSION_MINOR ${LUA_VERSION_MINOR} PARENT_SCOPE)
144
+ set(LUA_VERSION_PATCH ${LUA_VERSION_PATCH} PARENT_SCOPE)
145
+ set(LUA_VERSION_STRING ${LUA_VERSION_STRING} PARENT_SCOPE)
146
+ return()
147
+ endif ()
148
+ endforeach ()
149
+ endfunction(_lua_get_header_version)
150
+
151
+ function(_lua_find_header)
152
+ _lua_set_version_vars()
153
+
154
+ # Initialize as local variable
155
+ set(CMAKE_IGNORE_PATH ${CMAKE_IGNORE_PATH})
156
+ while (TRUE)
157
+ # Find the next header to test. Check each possible subdir in order
158
+ # This prefers e.g. higher versions as they are earlier in the list
159
+ # It is also consistent with previous versions of FindLua
160
+ foreach (subdir IN LISTS _lua_include_subdirs)
161
+ find_path(LUA_INCLUDE_DIR lua.h
162
+ HINTS ENV LUA_DIR
163
+ PATH_SUFFIXES ${subdir}
164
+ )
165
+ if (LUA_INCLUDE_DIR)
166
+ break()
167
+ endif()
168
+ endforeach()
169
+ # Did not found header -> Fail
170
+ if (NOT LUA_INCLUDE_DIR)
171
+ return()
172
+ endif()
173
+ _lua_get_header_version()
174
+ # Found accepted version -> Ok
175
+ if (LUA_VERSION_STRING)
176
+ if (LUA_Debug)
177
+ message(STATUS "Found suitable version ${LUA_VERSION_STRING} in ${LUA_INCLUDE_DIR}/lua.h")
178
+ endif()
179
+ return()
180
+ endif()
181
+ # Found wrong version -> Ignore this path and retry
182
+ if (LUA_Debug)
183
+ message(STATUS "Ignoring unsuitable version in ${LUA_INCLUDE_DIR}")
184
+ endif()
185
+ list(APPEND CMAKE_IGNORE_PATH "${LUA_INCLUDE_DIR}")
186
+ unset(LUA_INCLUDE_DIR CACHE)
187
+ unset(LUA_INCLUDE_DIR)
188
+ unset(LUA_INCLUDE_DIR PARENT_SCOPE)
189
+ endwhile ()
190
+ endfunction()
191
+
192
+ _lua_get_versions()
193
+ _lua_find_header()
194
+ _lua_get_header_version()
195
+ unset(_lua_append_versions)
196
+
197
+ if (LUA_VERSION_STRING)
198
+ set(_lua_library_names
199
+ lua${LUA_VERSION_MAJOR}${LUA_VERSION_MINOR}
200
+ lua${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
201
+ lua-${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
202
+ lua.${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
203
+ )
204
+ endif ()
205
+
206
+ find_library(LUA_LIBRARY
207
+ NAMES ${_lua_library_names} lua
208
+ NAMES_PER_DIR
209
+ HINTS
210
+ ENV LUA_DIR
211
+ PATH_SUFFIXES lib
212
+ )
213
+ unset(_lua_library_names)
214
+
215
+ if (LUA_LIBRARY)
216
+ # include the math library for Unix
217
+ if (UNIX AND NOT APPLE AND NOT BEOS)
218
+ find_library(LUA_MATH_LIBRARY m)
219
+ mark_as_advanced(LUA_MATH_LIBRARY)
220
+ set(LUA_LIBRARIES "${LUA_LIBRARY};${LUA_MATH_LIBRARY}")
221
+
222
+ # include dl library for statically-linked Lua library
223
+ get_filename_component(LUA_LIB_EXT ${LUA_LIBRARY} EXT)
224
+ if(LUA_LIB_EXT STREQUAL CMAKE_STATIC_LIBRARY_SUFFIX)
225
+ list(APPEND LUA_LIBRARIES ${CMAKE_DL_LIBS})
226
+ endif()
227
+
228
+ # For Windows and Mac, don't need to explicitly include the math library
229
+ else ()
230
+ set(LUA_LIBRARIES "${LUA_LIBRARY}")
231
+ endif ()
232
+ endif ()
233
+
234
+ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
235
+ # handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if
236
+ # all listed variables are TRUE
237
+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua
238
+ REQUIRED_VARS LUA_LIBRARIES LUA_INCLUDE_DIR
239
+ VERSION_VAR LUA_VERSION_STRING)
240
+
241
+ mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY)
242
+
243
+ cmake_policy(POP)
falcon/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindLua50.cmake ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2
+ # file Copyright.txt or https://cmake.org/licensing for details.
3
+
4
+ #[=======================================================================[.rst:
5
+ FindLua50
6
+ ---------
7
+
8
+ Locate Lua library.
9
+
10
+ This module defines::
11
+
12
+ LUA50_FOUND, if false, do not try to link to Lua
13
+ LUA_LIBRARIES, both lua and lualib
14
+ LUA_INCLUDE_DIR, where to find lua.h and lualib.h (and probably lauxlib.h)
15
+
16
+ Note that the expected include convention is::
17
+
18
+ #include "lua.h"
19
+
20
+ and not::
21
+
22
+ #include <lua/lua.h>
23
+
24
+ This is because, the lua location is not standardized and may exist in
25
+ locations other than lua/
26
+ #]=======================================================================]
27
+
28
+ find_path(LUA_INCLUDE_DIR lua.h
29
+ HINTS
30
+ ENV LUA_DIR
31
+ PATH_SUFFIXES include/lua50 include/lua5.0 include/lua5 include/lua include
32
+ PATHS
33
+ ~/Library/Frameworks
34
+ /Library/Frameworks
35
+ /opt
36
+ )
37
+
38
+ find_library(LUA_LIBRARY_lua
39
+ NAMES lua50 lua5.0 lua-5.0 lua5 lua
40
+ HINTS
41
+ ENV LUA_DIR
42
+ PATH_SUFFIXES lib
43
+ PATHS
44
+ ~/Library/Frameworks
45
+ /Library/Frameworks
46
+ /opt
47
+ )
48
+
49
+ # In an OS X framework, lualib is usually included as part of the framework
50
+ # (like GLU in OpenGL.framework)
51
+ if(${LUA_LIBRARY_lua} MATCHES "framework")
52
+ set( LUA_LIBRARIES "${LUA_LIBRARY_lua}" CACHE STRING "Lua framework")
53
+ else()
54
+ find_library(LUA_LIBRARY_lualib
55
+ NAMES lualib50 lualib5.0 lualib5 lualib
56
+ HINTS
57
+ ENV LUALIB_DIR
58
+ ENV LUA_DIR
59
+ PATH_SUFFIXES lib
60
+ PATHS
61
+ /opt
62
+ )
63
+ if(LUA_LIBRARY_lualib AND LUA_LIBRARY_lua)
64
+ # include the math library for Unix
65
+ if(UNIX AND NOT APPLE)
66
+ find_library(MATH_LIBRARY_FOR_LUA m)
67
+ set( LUA_LIBRARIES "${LUA_LIBRARY_lualib};${LUA_LIBRARY_lua};${MATH_LIBRARY_FOR_LUA}" CACHE STRING "This is the concatenation of lua and lualib libraries")
68
+ # For Windows and Mac, don't need to explicitly include the math library
69
+ else()
70
+ set( LUA_LIBRARIES "${LUA_LIBRARY_lualib};${LUA_LIBRARY_lua}" CACHE STRING "This is the concatenation of lua and lualib libraries")
71
+ endif()
72
+ endif()
73
+ endif()
74
+
75
+
76
+ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
77
+ # handle the QUIETLY and REQUIRED arguments and set LUA_FOUND to TRUE if
78
+ # all listed variables are TRUE
79
+ FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua50 DEFAULT_MSG LUA_LIBRARIES LUA_INCLUDE_DIR)
80
+
81
+ mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARIES)