Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
cmake-3.22 /
Modules /
[ HOME SHELL ]
Name
Size
Permission
Action
AndroidTestUtilities
[ DIR ]
drwxr-xr-x
CMakeAddFortranSubdirectory
[ DIR ]
drwxr-xr-x
CheckIPOSupported
[ DIR ]
drwxr-xr-x
Compiler
[ DIR ]
drwxr-xr-x
CompilerId
[ DIR ]
drwxr-xr-x
FetchContent
[ DIR ]
drwxr-xr-x
FindCUDA
[ DIR ]
drwxr-xr-x
FindMPI
[ DIR ]
drwxr-xr-x
FindPython
[ DIR ]
drwxr-xr-x
FortranCInterface
[ DIR ]
drwxr-xr-x
IntelVSImplicitPath
[ DIR ]
drwxr-xr-x
Internal
[ DIR ]
drwxr-xr-x
Platform
[ DIR ]
drwxr-xr-x
UseJava
[ DIR ]
drwxr-xr-x
UseSWIG
[ DIR ]
drwxr-xr-x
AddFileDependencies.cmake
955
B
-rw-r--r--
AndroidTestUtilities.cmake
6.22
KB
-rw-r--r--
BasicConfigVersion-AnyNewerVer...
2.01
KB
-rw-r--r--
BasicConfigVersion-ExactVersio...
3.38
KB
-rw-r--r--
BasicConfigVersion-SameMajorVe...
2.91
KB
-rw-r--r--
BasicConfigVersion-SameMinorVe...
3.8
KB
-rw-r--r--
BundleUtilities.cmake
40.91
KB
-rw-r--r--
CMake.cmake
307
B
-rw-r--r--
CMakeASM-ATTInformation.cmake
566
B
-rw-r--r--
CMakeASMCompiler.cmake.in
942
B
-rw-r--r--
CMakeASMInformation.cmake
3.93
KB
-rw-r--r--
CMakeASM_MASMInformation.cmake
918
B
-rw-r--r--
CMakeASM_NASMInformation.cmake
1.96
KB
-rw-r--r--
CMakeAddFortranSubdirectory.cm...
7.13
KB
-rw-r--r--
CMakeAddNewLanguage.txt
1.49
KB
-rw-r--r--
CMakeBackwardCompatibilityC.cm...
2.54
KB
-rw-r--r--
CMakeBackwardCompatibilityCXX....
1.77
KB
-rw-r--r--
CMakeBorlandFindMake.cmake
271
B
-rw-r--r--
CMakeBuildSettings.cmake.in
681
B
-rw-r--r--
CMakeCCompiler.cmake.in
2.96
KB
-rw-r--r--
CMakeCCompilerABI.c
511
B
-rw-r--r--
CMakeCCompilerId.c.in
2.85
KB
-rw-r--r--
CMakeCInformation.cmake
6.74
KB
-rw-r--r--
CMakeCSharpCompiler.cmake.in
477
B
-rw-r--r--
CMakeCSharpCompilerId.cs.in
1.59
KB
-rw-r--r--
CMakeCSharpInformation.cmake
2.94
KB
-rw-r--r--
CMakeCUDACompiler.cmake.in
3.27
KB
-rw-r--r--
CMakeCUDACompilerABI.cu
394
B
-rw-r--r--
CMakeCUDACompilerId.cu.in
1.7
KB
-rw-r--r--
CMakeCUDAInformation.cmake
8.78
KB
-rw-r--r--
CMakeCXXCompiler.cmake.in
3.52
KB
-rw-r--r--
CMakeCXXCompilerABI.cpp
388
B
-rw-r--r--
CMakeCXXCompilerId.cpp.in
2.82
KB
-rw-r--r--
CMakeCXXInformation.cmake
9.96
KB
-rw-r--r--
CMakeCheckCompilerFlagCommonPa...
2.1
KB
-rw-r--r--
CMakeCommonLanguageInclude.cma...
1.12
KB
-rw-r--r--
CMakeCompilerABI.h
1.54
KB
-rw-r--r--
CMakeCompilerIdDetection.cmake
4.72
KB
-rw-r--r--
CMakeConfigurableFile.in
34
B
-rw-r--r--
CMakeDependentOption.cmake
3.04
KB
-rw-r--r--
CMakeDetermineASM-ATTCompiler....
394
B
-rw-r--r--
CMakeDetermineASMCompiler.cmak...
11.34
KB
-rw-r--r--
CMakeDetermineASM_MASMCompiler...
586
B
-rw-r--r--
CMakeDetermineASM_NASMCompiler...
937
B
-rw-r--r--
CMakeDetermineCCompiler.cmake
8.38
KB
-rw-r--r--
CMakeDetermineCSharpCompiler.c...
1.63
KB
-rw-r--r--
CMakeDetermineCUDACompiler.cma...
29.12
KB
-rw-r--r--
CMakeDetermineCXXCompiler.cmak...
8.5
KB
-rw-r--r--
CMakeDetermineCompileFeatures....
9.08
KB
-rw-r--r--
CMakeDetermineCompiler.cmake
6.77
KB
-rw-r--r--
CMakeDetermineCompilerABI.cmak...
8.27
KB
-rw-r--r--
CMakeDetermineCompilerId.cmake
47.83
KB
-rw-r--r--
CMakeDetermineFortranCompiler....
12.07
KB
-rw-r--r--
CMakeDetermineHIPCompiler.cmak...
6.81
KB
-rw-r--r--
CMakeDetermineISPCCompiler.cma...
2.97
KB
-rw-r--r--
CMakeDetermineJavaCompiler.cma...
3.67
KB
-rw-r--r--
CMakeDetermineOBJCCompiler.cma...
7.28
KB
-rw-r--r--
CMakeDetermineOBJCXXCompiler.c...
7.65
KB
-rw-r--r--
CMakeDetermineRCCompiler.cmake
2.05
KB
-rw-r--r--
CMakeDetermineSwiftCompiler.cm...
2.93
KB
-rw-r--r--
CMakeDetermineSystem.cmake
8.44
KB
-rw-r--r--
CMakeDetermineVSServicePack.cm...
5.89
KB
-rw-r--r--
CMakeExpandImportedTargets.cma...
5.95
KB
-rw-r--r--
CMakeExportBuildSettings.cmake
1.21
KB
-rw-r--r--
CMakeExtraGeneratorDetermineCo...
5.12
KB
-rw-r--r--
CMakeFindBinUtils.cmake
9.86
KB
-rw-r--r--
CMakeFindCodeBlocks.cmake
1.72
KB
-rw-r--r--
CMakeFindDependencyMacro.cmake
2.11
KB
-rw-r--r--
CMakeFindEclipseCDT4.cmake
4.84
KB
-rw-r--r--
CMakeFindFrameworks.cmake
1.54
KB
-rw-r--r--
CMakeFindJavaCommon.cmake
1
KB
-rw-r--r--
CMakeFindKate.cmake
1.02
KB
-rw-r--r--
CMakeFindPackageMode.cmake
6.1
KB
-rw-r--r--
CMakeFindSublimeText2.cmake
1.01
KB
-rw-r--r--
CMakeFindWMake.cmake
272
B
-rw-r--r--
CMakeFindXCode.cmake
250
B
-rw-r--r--
CMakeForceCompiler.cmake
4.11
KB
-rw-r--r--
CMakeFortranCompiler.cmake.in
2.67
KB
-rw-r--r--
CMakeFortranCompilerABI.F
1.09
KB
-rw-r--r--
CMakeFortranCompilerABI.F90
1.08
KB
-rw-r--r--
CMakeFortranCompilerId.F.in
9.88
KB
-rw-r--r--
CMakeFortranInformation.cmake
8.82
KB
-rw-r--r--
CMakeGenericSystem.cmake
6.64
KB
-rw-r--r--
CMakeGraphVizOptions.cmake
3.73
KB
-rw-r--r--
CMakeHIPCompiler.cmake.in
2.57
KB
-rw-r--r--
CMakeHIPCompilerABI.hip
293
B
-rw-r--r--
CMakeHIPCompilerId.hip.in
1.6
KB
-rw-r--r--
CMakeHIPInformation.cmake
5.51
KB
-rw-r--r--
CMakeIOSInstallCombined.cmake
10.2
KB
-rw-r--r--
CMakeISPCCompiler.cmake.in
1.15
KB
-rw-r--r--
CMakeISPCCompilerABI.ispc
545
B
-rw-r--r--
CMakeISPCCompilerId.ispc.in
2.09
KB
-rw-r--r--
CMakeISPCInformation.cmake
2.35
KB
-rw-r--r--
CMakeImportBuildSettings.cmake
535
B
-rw-r--r--
CMakeInitializeConfigs.cmake
1.54
KB
-rw-r--r--
CMakeJOMFindMake.cmake
270
B
-rw-r--r--
CMakeJavaCompiler.cmake.in
538
B
-rw-r--r--
CMakeJavaInformation.cmake
1.74
KB
-rw-r--r--
CMakeLanguageInformation.cmake
1.23
KB
-rw-r--r--
CMakeMSYSFindMake.cmake
489
B
-rw-r--r--
CMakeMinGWFindMake.cmake
437
B
-rw-r--r--
CMakeNMakeFindMake.cmake
272
B
-rw-r--r--
CMakeNinjaFindMake.cmake
315
B
-rw-r--r--
CMakeOBJCCompiler.cmake.in
3.16
KB
-rw-r--r--
CMakeOBJCCompilerABI.m
556
B
-rw-r--r--
CMakeOBJCCompilerId.m.in
2.06
KB
-rw-r--r--
CMakeOBJCInformation.cmake
7.1
KB
-rw-r--r--
CMakeOBJCXXCompiler.cmake.in
3.64
KB
-rw-r--r--
CMakeOBJCXXCompilerABI.mm
557
B
-rw-r--r--
CMakeOBJCXXCompilerId.mm.in
2.03
KB
-rw-r--r--
CMakeOBJCXXInformation.cmake
10.43
KB
-rw-r--r--
CMakePackageConfigHelpers.cmak...
13.97
KB
-rw-r--r--
CMakeParseArguments.cmake
581
B
-rw-r--r--
CMakeParseImplicitIncludeInfo....
9.54
KB
-rw-r--r--
CMakeParseImplicitLinkInfo.cma...
11.26
KB
-rw-r--r--
CMakeParseLibraryArchitecture....
1.69
KB
-rw-r--r--
CMakePlatformId.h.in
7.95
KB
-rw-r--r--
CMakePrintHelpers.cmake
4.17
KB
-rw-r--r--
CMakePrintSystemInformation.cm...
2.14
KB
-rw-r--r--
CMakePushCheckState.cmake
3.85
KB
-rw-r--r--
CMakeRCCompiler.cmake.in
270
B
-rw-r--r--
CMakeRCInformation.cmake
1.94
KB
-rw-r--r--
CMakeSwiftCompiler.cmake.in
635
B
-rw-r--r--
CMakeSwiftInformation.cmake
5.21
KB
-rw-r--r--
CMakeSystem.cmake.in
563
B
-rw-r--r--
CMakeSystemSpecificInformation...
2.34
KB
-rw-r--r--
CMakeSystemSpecificInitialize....
1
KB
-rw-r--r--
CMakeTestASM-ATTCompiler.cmake
527
B
-rw-r--r--
CMakeTestASMCompiler.cmake
865
B
-rw-r--r--
CMakeTestASM_MASMCompiler.cmak...
556
B
-rw-r--r--
CMakeTestASM_NASMCompiler.cmak...
529
B
-rw-r--r--
CMakeTestCCompiler.cmake
3.9
KB
-rw-r--r--
CMakeTestCSharpCompiler.cmake
2.79
KB
-rw-r--r--
CMakeTestCUDACompiler.cmake
4.24
KB
-rw-r--r--
CMakeTestCXXCompiler.cmake
3.8
KB
-rw-r--r--
CMakeTestCompilerCommon.cmake
1.3
KB
-rw-r--r--
CMakeTestFortranCompiler.cmake
4.68
KB
-rw-r--r--
CMakeTestGNU.c
268
B
-rw-r--r--
CMakeTestHIPCompiler.cmake
3.96
KB
-rw-r--r--
CMakeTestISPCCompiler.cmake
1.42
KB
-rw-r--r--
CMakeTestJavaCompiler.cmake
484
B
-rw-r--r--
CMakeTestOBJCCompiler.cmake
4.02
KB
-rw-r--r--
CMakeTestOBJCXXCompiler.cmake
4.05
KB
-rw-r--r--
CMakeTestRCCompiler.cmake
573
B
-rw-r--r--
CMakeTestSwiftCompiler.cmake
2.94
KB
-rw-r--r--
CMakeUnixFindMake.cmake
575
B
-rw-r--r--
CMakeVerifyManifest.cmake
3.88
KB
-rw-r--r--
CPack.cmake
35.12
KB
-rw-r--r--
CPackComponent.cmake
20.26
KB
-rw-r--r--
CPackIFW.cmake
25.82
KB
-rw-r--r--
CPackIFWConfigureFile.cmake
2.21
KB
-rw-r--r--
CSharpUtilities.cmake
10.73
KB
-rw-r--r--
CTest.cmake
9
KB
-rw-r--r--
CTestCoverageCollectGCOV.cmake
11.98
KB
-rw-r--r--
CTestScriptMode.cmake
662
B
-rw-r--r--
CTestTargets.cmake
3.09
KB
-rw-r--r--
CTestUseLaunchers.cmake
2.92
KB
-rw-r--r--
CheckCCompilerFlag.cmake
1.5
KB
-rw-r--r--
CheckCSourceCompiles.cmake
3.24
KB
-rw-r--r--
CheckCSourceRuns.cmake
3.19
KB
-rw-r--r--
CheckCXXCompilerFlag.cmake
1.53
KB
-rw-r--r--
CheckCXXSourceCompiles.cmake
3.26
KB
-rw-r--r--
CheckCXXSourceRuns.cmake
3.21
KB
-rw-r--r--
CheckCXXSymbolExists.cmake
3.08
KB
-rw-r--r--
CheckCompilerFlag.cmake
1.51
KB
-rw-r--r--
CheckForPthreads.c
273
B
-rw-r--r--
CheckFortranCompilerFlag.cmake
1.59
KB
-rw-r--r--
CheckFortranFunctionExists.cma...
3.11
KB
-rw-r--r--
CheckFortranSourceCompiles.cma...
4.15
KB
-rw-r--r--
CheckFortranSourceRuns.cmake
3.96
KB
-rw-r--r--
CheckFunctionExists.c
433
B
-rw-r--r--
CheckFunctionExists.cmake
4.41
KB
-rw-r--r--
CheckIPOSupported.cmake
6.68
KB
-rw-r--r--
CheckIncludeFile.c.in
130
B
-rw-r--r--
CheckIncludeFile.cmake
4.85
KB
-rw-r--r--
CheckIncludeFile.cxx.in
65
B
-rw-r--r--
CheckIncludeFileCXX.cmake
4.88
KB
-rw-r--r--
CheckIncludeFiles.cmake
6.43
KB
-rw-r--r--
CheckLanguage.cmake
4.31
KB
-rw-r--r--
CheckLibraryExists.cmake
3.59
KB
-rw-r--r--
CheckLibraryExists.lists.in
298
B
-rw-r--r--
CheckLinkerFlag.cmake
3.2
KB
-rw-r--r--
CheckOBJCCompilerFlag.cmake
1.56
KB
-rw-r--r--
CheckOBJCSourceCompiles.cmake
3.25
KB
-rw-r--r--
CheckOBJCSourceRuns.cmake
3.21
KB
-rw-r--r--
CheckOBJCXXCompilerFlag.cmake
1.58
KB
-rw-r--r--
CheckOBJCXXSourceCompiles.cmak...
3.28
KB
-rw-r--r--
CheckOBJCXXSourceRuns.cmake
3.23
KB
-rw-r--r--
CheckPIESupported.cmake
4.53
KB
-rw-r--r--
CheckPrototypeDefinition.c.in
514
B
-rw-r--r--
CheckPrototypeDefinition.cmake
4.46
KB
-rw-r--r--
CheckSizeOf.cmake
348
B
-rw-r--r--
CheckSourceCompiles.cmake
3.49
KB
-rw-r--r--
CheckSourceRuns.cmake
3.37
KB
-rw-r--r--
CheckStructHasMember.cmake
2.49
KB
-rw-r--r--
CheckSymbolExists.cmake
6.62
KB
-rw-r--r--
CheckTypeSize.c.in
1.21
KB
-rw-r--r--
CheckTypeSize.cmake
10.04
KB
-rw-r--r--
CheckTypeSizeMap.cmake.in
31
B
-rw-r--r--
CheckVariableExists.c
382
B
-rw-r--r--
CheckVariableExists.cmake
2.9
KB
-rw-r--r--
Dart.cmake
3.74
KB
-rw-r--r--
DartConfiguration.tcl.in
3.16
KB
-rw-r--r--
DeployQt4.cmake
12.63
KB
-rw-r--r--
Documentation.cmake
2.24
KB
-rw-r--r--
DummyCXXFile.cxx
27
B
-rw-r--r--
ExternalData.cmake
44.33
KB
-rw-r--r--
ExternalData_config.cmake.in
355
B
-rw-r--r--
ExternalProject-download.cmake...
4.07
KB
-rw-r--r--
ExternalProject-gitupdate.cmak...
9.65
KB
-rw-r--r--
ExternalProject-verify.cmake.i...
904
B
-rw-r--r--
ExternalProject.cmake
136.1
KB
-rw-r--r--
FLTKCompatibility.cmake
170
B
-rw-r--r--
FeatureSummary.cmake
27.97
KB
-rw-r--r--
FetchContent.cmake
52.08
KB
-rw-r--r--
FindALSA.cmake
2.18
KB
-rw-r--r--
FindASPELL.cmake
1.02
KB
-rw-r--r--
FindAVIFile.cmake
1.35
KB
-rw-r--r--
FindArmadillo.cmake
4.98
KB
-rw-r--r--
FindBISON.cmake
10.75
KB
-rw-r--r--
FindBLAS.cmake
35.92
KB
-rw-r--r--
FindBZip2.cmake
3.5
KB
-rw-r--r--
FindBacktrace.cmake
3.44
KB
-rw-r--r--
FindBoost.cmake
112.93
KB
-rw-r--r--
FindBullet.cmake
2.75
KB
-rw-r--r--
FindCABLE.cmake
2.54
KB
-rw-r--r--
FindCUDA.cmake
85.67
KB
-rw-r--r--
FindCUDAToolkit.cmake
33.19
KB
-rw-r--r--
FindCURL.cmake
7.2
KB
-rw-r--r--
FindCVS.cmake
1.94
KB
-rw-r--r--
FindCoin3D.cmake
2.25
KB
-rw-r--r--
FindCups.cmake
3.37
KB
-rw-r--r--
FindCurses.cmake
9.2
KB
-rw-r--r--
FindCxxTest.cmake
7.57
KB
-rw-r--r--
FindCygwin.cmake
870
B
-rw-r--r--
FindDCMTK.cmake
10.25
KB
-rw-r--r--
FindDart.cmake
949
B
-rw-r--r--
FindDevIL.cmake
3.78
KB
-rw-r--r--
FindDoxygen.cmake
41.4
KB
-rw-r--r--
FindEXPAT.cmake
2.67
KB
-rw-r--r--
FindEnvModules.cmake
9.73
KB
-rw-r--r--
FindFLEX.cmake
8.46
KB
-rw-r--r--
FindFLTK.cmake
10.8
KB
-rw-r--r--
FindFLTK2.cmake
7.5
KB
-rw-r--r--
FindFontconfig.cmake
2.89
KB
-rw-r--r--
FindFreetype.cmake
5.97
KB
-rw-r--r--
FindGCCXML.cmake
672
B
-rw-r--r--
FindGDAL.cmake
6.46
KB
-rw-r--r--
FindGIF.cmake
3.79
KB
-rw-r--r--
FindGLEW.cmake
10.77
KB
-rw-r--r--
FindGLU.cmake
554
B
-rw-r--r--
FindGLUT.cmake
6.81
KB
-rw-r--r--
FindGSL.cmake
8.86
KB
-rw-r--r--
FindGTK.cmake
3.79
KB
-rw-r--r--
FindGTK2.cmake
36.88
KB
-rw-r--r--
FindGTest.cmake
11.76
KB
-rw-r--r--
FindGettext.cmake
7.81
KB
-rw-r--r--
FindGit.cmake
4.09
KB
-rw-r--r--
FindGnuTLS.cmake
2.44
KB
-rw-r--r--
FindGnuplot.cmake
1.65
KB
-rw-r--r--
FindHDF5.cmake
46.84
KB
-rw-r--r--
FindHSPELL.cmake
1.64
KB
-rw-r--r--
FindHTMLHelp.cmake
1.43
KB
-rw-r--r--
FindHg.cmake
3
KB
-rw-r--r--
FindICU.cmake
15.73
KB
-rw-r--r--
FindIce.cmake
23.82
KB
-rw-r--r--
FindIconv.cmake
5.79
KB
-rw-r--r--
FindIcotool.cmake
1.3
KB
-rw-r--r--
FindImageMagick.cmake
11.56
KB
-rw-r--r--
FindIntl.cmake
5.38
KB
-rw-r--r--
FindJNI.cmake
13.5
KB
-rw-r--r--
FindJPEG.cmake
4.21
KB
-rw-r--r--
FindJasper.cmake
2.96
KB
-rw-r--r--
FindJava.cmake
12.64
KB
-rw-r--r--
FindKDE3.cmake
9.91
KB
-rw-r--r--
FindKDE4.cmake
3.12
KB
-rw-r--r--
FindLAPACK.cmake
21.25
KB
-rw-r--r--
FindLATEX.cmake
6.5
KB
-rw-r--r--
FindLTTngUST.cmake
3.6
KB
-rw-r--r--
FindLibArchive.cmake
2.87
KB
-rw-r--r--
FindLibLZMA.cmake
5.24
KB
-rw-r--r--
FindLibXml2.cmake
4.12
KB
-rw-r--r--
FindLibXslt.cmake
4.75
KB
-rw-r--r--
FindLibinput.cmake
2.13
KB
-rw-r--r--
FindLua.cmake
8.25
KB
-rw-r--r--
FindLua50.cmake
2.34
KB
-rw-r--r--
FindLua51.cmake
2.23
KB
-rw-r--r--
FindMFC.cmake
2.43
KB
-rw-r--r--
FindMPEG.cmake
1.21
KB
-rw-r--r--
FindMPEG2.cmake
1.39
KB
-rw-r--r--
FindMPI.cmake
91.84
KB
-rw-r--r--
FindMatlab.cmake
66.5
KB
-rw-r--r--
FindMotif.cmake
917
B
-rw-r--r--
FindMsys.cmake
894
B
-rw-r--r--
FindODBC.cmake
7.01
KB
-rw-r--r--
FindOpenACC.cmake
9.92
KB
-rw-r--r--
FindOpenAL.cmake
3.21
KB
-rw-r--r--
FindOpenCL.cmake
4.86
KB
-rw-r--r--
FindOpenGL.cmake
20.19
KB
-rw-r--r--
FindOpenMP.cmake
25.53
KB
-rw-r--r--
FindOpenSSL.cmake
23.12
KB
-rw-r--r--
FindOpenSceneGraph.cmake
7.23
KB
-rw-r--r--
FindOpenThreads.cmake
3.41
KB
-rw-r--r--
FindPHP4.cmake
2.11
KB
-rw-r--r--
FindPNG.cmake
5.74
KB
-rw-r--r--
FindPackageHandleStandardArgs....
22.41
KB
-rw-r--r--
FindPackageMessage.cmake
1.67
KB
-rw-r--r--
FindPatch.cmake
1.77
KB
-rw-r--r--
FindPerl.cmake
2.93
KB
-rw-r--r--
FindPerlLibs.cmake
5.15
KB
-rw-r--r--
FindPhysFS.cmake
1.12
KB
-rw-r--r--
FindPike.cmake
922
B
-rw-r--r--
FindPkgConfig.cmake
35.63
KB
-rw-r--r--
FindPostgreSQL.cmake
12.23
KB
-rw-r--r--
FindProducer.cmake
2.24
KB
-rw-r--r--
FindProtobuf.cmake
23.4
KB
-rw-r--r--
FindPython.cmake
19.65
KB
-rw-r--r--
FindPython2.cmake
14.14
KB
-rw-r--r--
FindPython3.cmake
16.21
KB
-rw-r--r--
FindPythonInterp.cmake
7.15
KB
-rw-r--r--
FindPythonLibs.cmake
15.85
KB
-rw-r--r--
FindQt.cmake
6.31
KB
-rw-r--r--
FindQt3.cmake
9.46
KB
-rw-r--r--
FindQt4.cmake
52.5
KB
-rw-r--r--
FindQuickTime.cmake
1011
B
-rw-r--r--
FindRTI.cmake
3.22
KB
-rw-r--r--
FindRuby.cmake
18.04
KB
-rw-r--r--
FindSDL.cmake
7.92
KB
-rw-r--r--
FindSDL_image.cmake
3.81
KB
-rw-r--r--
FindSDL_mixer.cmake
3.81
KB
-rw-r--r--
FindSDL_net.cmake
3.63
KB
-rw-r--r--
FindSDL_sound.cmake
12.33
KB
-rw-r--r--
FindSDL_ttf.cmake
3.63
KB
-rw-r--r--
FindSQLite3.cmake
2
KB
-rw-r--r--
FindSWIG.cmake
5.41
KB
-rw-r--r--
FindSelfPackers.cmake
1.59
KB
-rw-r--r--
FindSquish.cmake
9.26
KB
-rw-r--r--
FindSubversion.cmake
6.24
KB
-rw-r--r--
FindTCL.cmake
8.05
KB
-rw-r--r--
FindTIFF.cmake
6.54
KB
-rw-r--r--
FindTclStub.cmake
4.46
KB
-rw-r--r--
FindTclsh.cmake
3.6
KB
-rw-r--r--
FindThreads.cmake
8.22
KB
-rw-r--r--
FindUnixCommands.cmake
1.5
KB
-rw-r--r--
FindVulkan.cmake
4.53
KB
-rw-r--r--
FindWget.cmake
968
B
-rw-r--r--
FindWish.cmake
2.72
KB
-rw-r--r--
FindX11.cmake
34.81
KB
-rw-r--r--
FindXCTest.cmake
7.19
KB
-rw-r--r--
FindXMLRPC.cmake
3.98
KB
-rw-r--r--
FindXalanC.cmake
5.85
KB
-rw-r--r--
FindXercesC.cmake
5.53
KB
-rw-r--r--
FindZLIB.cmake
4.94
KB
-rw-r--r--
Findosg.cmake
1.88
KB
-rw-r--r--
FindosgAnimation.cmake
1.87
KB
-rw-r--r--
FindosgDB.cmake
1.77
KB
-rw-r--r--
FindosgFX.cmake
1.76
KB
-rw-r--r--
FindosgGA.cmake
1.77
KB
-rw-r--r--
FindosgIntrospection.cmake
1.96
KB
-rw-r--r--
FindosgManipulator.cmake
1.93
KB
-rw-r--r--
FindosgParticle.cmake
1.86
KB
-rw-r--r--
FindosgPresentation.cmake
2.02
KB
-rw-r--r--
FindosgProducer.cmake
1.87
KB
-rw-r--r--
FindosgQt.cmake
1.82
KB
-rw-r--r--
FindosgShadow.cmake
1.83
KB
-rw-r--r--
FindosgSim.cmake
1.77
KB
-rw-r--r--
FindosgTerrain.cmake
1.84
KB
-rw-r--r--
FindosgText.cmake
1.77
KB
-rw-r--r--
FindosgUtil.cmake
1.78
KB
-rw-r--r--
FindosgViewer.cmake
1.82
KB
-rw-r--r--
FindosgVolume.cmake
1.82
KB
-rw-r--r--
FindosgWidget.cmake
1.87
KB
-rw-r--r--
Findosg_functions.cmake
2.08
KB
-rw-r--r--
FindwxWidgets.cmake
42.99
KB
-rw-r--r--
FindwxWindows.cmake
23.82
KB
-rw-r--r--
FortranCInterface.cmake
14.18
KB
-rw-r--r--
GNUInstallDirs.cmake
16.67
KB
-rw-r--r--
GenerateExportHeader.cmake
15.23
KB
-rw-r--r--
GetPrerequisites.cmake
33.28
KB
-rw-r--r--
GoogleTest.cmake
23.34
KB
-rw-r--r--
GoogleTestAddTests.cmake
5.95
KB
-rw-r--r--
ITKCompatibility.cmake
224
B
-rw-r--r--
InstallRequiredSystemLibraries...
30.45
KB
-rw-r--r--
KDE3Macros.cmake
12.39
KB
-rw-r--r--
MacOSXBundleInfo.plist.in
1.19
KB
-rw-r--r--
MacOSXFrameworkInfo.plist.in
886
B
-rw-r--r--
MacroAddFileDependencies.cmake
848
B
-rw-r--r--
MatlabTestsRedirect.cmake
3.39
KB
-rw-r--r--
ProcessorCount.cmake
8.54
KB
-rw-r--r--
Qt4ConfigDependentSettings.cma...
7.61
KB
-rw-r--r--
Qt4Macros.cmake
18.79
KB
-rw-r--r--
RepositoryInfo.txt.in
56
B
-rw-r--r--
SelectLibraryConfigurations.cm...
3.21
KB
-rw-r--r--
Squish4RunTestCase.bat
648
B
-rw-r--r--
Squish4RunTestCase.sh
631
B
-rwxr-xr-x
SquishRunTestCase.bat
219
B
-rw-r--r--
SquishRunTestCase.sh
272
B
-rwxr-xr-x
SquishTestScript.cmake
3.41
KB
-rw-r--r--
SystemInformation.cmake
3.12
KB
-rw-r--r--
SystemInformation.in
4.59
KB
-rw-r--r--
TestBigEndian.cmake
5.27
KB
-rw-r--r--
TestCXXAcceptsFlag.cmake
1.43
KB
-rw-r--r--
TestEndianess.c.in
871
B
-rw-r--r--
TestForANSIForScope.cmake
1.45
KB
-rw-r--r--
TestForANSIStreamHeaders.cmake
1.04
KB
-rw-r--r--
TestForANSIStreamHeaders.cxx
61
B
-rw-r--r--
TestForAnsiForScope.cxx
96
B
-rw-r--r--
TestForSSTREAM.cmake
1.4
KB
-rw-r--r--
TestForSSTREAM.cxx
150
B
-rw-r--r--
TestForSTDNamespace.cmake
1.37
KB
-rw-r--r--
TestForSTDNamespace.cxx
76
B
-rw-r--r--
UseEcos.cmake
9.7
KB
-rw-r--r--
UseJava.cmake
61.87
KB
-rw-r--r--
UsePkgConfig.cmake
2.65
KB
-rw-r--r--
UseQt4.cmake
3.62
KB
-rw-r--r--
UseSWIG.cmake
40.72
KB
-rw-r--r--
Use_wxWindows.cmake
2.1
KB
-rw-r--r--
UsewxWidgets.cmake
3.03
KB
-rw-r--r--
VTKCompatibility.cmake
1.78
KB
-rw-r--r--
WriteBasicConfigVersionFile.cm...
1.65
KB
-rw-r--r--
WriteCompilerDetectionHeader.c...
30.97
KB
-rw-r--r--
ecos_clean.cmake
492
B
-rw-r--r--
exportheader.cmake.in
1.08
KB
-rw-r--r--
kde3init_dummy.cpp.in
227
B
-rw-r--r--
kde3uic.cmake
723
B
-rw-r--r--
readme.txt
233
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FindOpenSSL.cmake
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. #[=======================================================================[.rst: FindOpenSSL ----------- Find the OpenSSL encryption library. This module finds an installed OpenSSL library and determines its version. .. versionadded:: 3.19 When a version is requested, it can be specified as a simple value or as a range. For a detailed description of version range usage and capabilities, refer to the :command:`find_package` command. .. versionadded:: 3.18 Support for OpenSSL 3.0. Optional COMPONENTS ^^^^^^^^^^^^^^^^^^^ .. versionadded:: 3.12 This module supports two optional COMPONENTS: ``Crypto`` and ``SSL``. Both components have associated imported targets, as described below. Imported Targets ^^^^^^^^^^^^^^^^ .. versionadded:: 3.4 This module defines the following :prop_tgt:`IMPORTED` targets: ``OpenSSL::SSL`` The OpenSSL ``ssl`` library, if found. ``OpenSSL::Crypto`` The OpenSSL ``crypto`` library, if found. ``OpenSSL::applink`` .. versionadded:: 3.18 The OpenSSL ``applink`` components that might be need to be compiled into projects under MSVC. This target is available only if found OpenSSL version is not less than 0.9.8. By linking this target the above OpenSSL targets can be linked even if the project has different MSVC runtime configurations with the above OpenSSL targets. This target has no effect on platforms other than MSVC. NOTE: Due to how ``INTERFACE_SOURCES`` are consumed by the consuming target, unless you certainly know what you are doing, it is always preferred to link ``OpenSSL::applink`` target as ``PRIVATE`` and to make sure that this target is linked at most once for the whole dependency graph of any library or executable: .. code-block:: cmake target_link_libraries(myTarget PRIVATE OpenSSL::applink) Otherwise you would probably encounter unexpected random problems when building and linking, as both the ISO C and the ISO C++ standard claims almost nothing about what a link process should be. Result Variables ^^^^^^^^^^^^^^^^ This module will set the following variables in your project: ``OPENSSL_FOUND`` System has the OpenSSL library. If no components are requested it only requires the crypto library. ``OPENSSL_INCLUDE_DIR`` The OpenSSL include directory. ``OPENSSL_CRYPTO_LIBRARY`` The OpenSSL crypto library. ``OPENSSL_CRYPTO_LIBRARIES`` The OpenSSL crypto library and its dependencies. ``OPENSSL_SSL_LIBRARY`` The OpenSSL SSL library. ``OPENSSL_SSL_LIBRARIES`` The OpenSSL SSL library and its dependencies. ``OPENSSL_LIBRARIES`` All OpenSSL libraries and their dependencies. ``OPENSSL_VERSION`` This is set to ``$major.$minor.$revision$patch`` (e.g. ``0.9.8s``). ``OPENSSL_APPLINK_SOURCE`` The sources in the target ``OpenSSL::applink`` that is mentioned above. This variable shall always be undefined if found openssl version is less than 0.9.8 or if platform is not MSVC. Hints ^^^^^ Set ``OPENSSL_ROOT_DIR`` to the root directory of an OpenSSL installation. .. versionadded:: 3.4 Set ``OPENSSL_USE_STATIC_LIBS`` to ``TRUE`` to look for static libraries. .. versionadded:: 3.5 Set ``OPENSSL_MSVC_STATIC_RT`` set ``TRUE`` to choose the MT version of the lib. #]=======================================================================] macro(_OpenSSL_test_and_find_dependencies ssl_library crypto_library) if((CMAKE_SYSTEM_NAME STREQUAL "Linux") AND (("${ssl_library}" MATCHES "\\${CMAKE_STATIC_LIBRARY_SUFFIX}$") OR ("${crypto_library}" MATCHES "\\${CMAKE_STATIC_LIBRARY_SUFFIX}$"))) set(_OpenSSL_has_dependencies TRUE) find_package(Threads) else() set(_OpenSSL_has_dependencies FALSE) endif() endmacro() function(_OpenSSL_add_dependencies libraries_var) if(CMAKE_THREAD_LIBS_INIT) list(APPEND ${libraries_var} ${CMAKE_THREAD_LIBS_INIT}) endif() list(APPEND ${libraries_var} ${CMAKE_DL_LIBS}) set(${libraries_var} ${${libraries_var}} PARENT_SCOPE) endfunction() function(_OpenSSL_target_add_dependencies target) if(_OpenSSL_has_dependencies) set_property( TARGET ${target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES Threads::Threads ) set_property( TARGET ${target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${CMAKE_DL_LIBS} ) endif() if(WIN32 AND OPENSSL_USE_STATIC_LIBS) set_property( TARGET ${target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ws2_32 ) set_property( TARGET ${target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES crypt32 ) endif() endfunction() if (UNIX) find_package(PkgConfig QUIET) pkg_check_modules(_OPENSSL QUIET openssl) endif () # Support preference of static libs by adjusting CMAKE_FIND_LIBRARY_SUFFIXES if(OPENSSL_USE_STATIC_LIBS) set(_openssl_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) if(WIN32) set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) else() set(CMAKE_FIND_LIBRARY_SUFFIXES .a ) endif() endif() if (WIN32) # http://www.slproweb.com/products/Win32OpenSSL.html set(_OPENSSL_ROOT_HINTS ${OPENSSL_ROOT_DIR} "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\OpenSSL (32-bit)_is1;Inno Setup: App Path]" "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\OpenSSL (64-bit)_is1;Inno Setup: App Path]" ENV OPENSSL_ROOT_DIR ) if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8") set(_arch "Win64") file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _programfiles) else() set(_arch "Win32") set(_progfiles_x86 "ProgramFiles(x86)") if(NOT "$ENV{${_progfiles_x86}}" STREQUAL "") # under windows 64 bit machine file(TO_CMAKE_PATH "$ENV{${_progfiles_x86}}" _programfiles) else() # under windows 32 bit machine file(TO_CMAKE_PATH "$ENV{ProgramFiles}" _programfiles) endif() endif() set(_OPENSSL_ROOT_PATHS "${_programfiles}/OpenSSL" "${_programfiles}/OpenSSL-${_arch}" "C:/OpenSSL/" "C:/OpenSSL-${_arch}/" ) unset(_programfiles) unset(_arch) else () set(_OPENSSL_ROOT_HINTS ${OPENSSL_ROOT_DIR} ENV OPENSSL_ROOT_DIR ) endif () set(_OPENSSL_ROOT_HINTS_AND_PATHS HINTS ${_OPENSSL_ROOT_HINTS} PATHS ${_OPENSSL_ROOT_PATHS} ) find_path(OPENSSL_INCLUDE_DIR NAMES openssl/ssl.h ${_OPENSSL_ROOT_HINTS_AND_PATHS} HINTS ${_OPENSSL_INCLUDEDIR} ${_OPENSSL_INCLUDE_DIRS} PATH_SUFFIXES include ) if(WIN32 AND NOT CYGWIN) if(MSVC) # /MD and /MDd are the standard values - if someone wants to use # others, the libnames have to change here too # use also ssl and ssleay32 in debug as fallback for openssl < 0.9.8b # enable OPENSSL_MSVC_STATIC_RT to get the libs build /MT (Multithreaded no-DLL) # In Visual C++ naming convention each of these four kinds of Windows libraries has it's standard suffix: # * MD for dynamic-release # * MDd for dynamic-debug # * MT for static-release # * MTd for static-debug # Implementation details: # We are using the libraries located in the VC subdir instead of the parent directory even though : # libeay32MD.lib is identical to ../libeay32.lib, and # ssleay32MD.lib is identical to ../ssleay32.lib # enable OPENSSL_USE_STATIC_LIBS to use the static libs located in lib/VC/static if (OPENSSL_MSVC_STATIC_RT) set(_OPENSSL_MSVC_RT_MODE "MT") else () set(_OPENSSL_MSVC_RT_MODE "MD") endif () # Since OpenSSL 1.1, lib names are like libcrypto32MTd.lib and libssl32MTd.lib if( "${CMAKE_SIZEOF_VOID_P}" STREQUAL "8" ) set(_OPENSSL_MSVC_ARCH_SUFFIX "64") else() set(_OPENSSL_MSVC_ARCH_SUFFIX "32") endif() if(OPENSSL_USE_STATIC_LIBS) set(_OPENSSL_STATIC_SUFFIX "_static" ) set(_OPENSSL_PATH_SUFFIXES "lib/VC/static" "VC/static" "lib" ) else() set(_OPENSSL_STATIC_SUFFIX "" ) set(_OPENSSL_PATH_SUFFIXES "lib/VC" "VC" "lib" ) endif () find_library(LIB_EAY_DEBUG NAMES # When OpenSSL is built with default options, the static library name is suffixed with "_static". # Looking the "libcrypto_static.lib" with a higher priority than "libcrypto.lib" which is the # import library of "libcrypto.dll". libcrypto${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_ARCH_SUFFIX}${_OPENSSL_MSVC_RT_MODE}d libcrypto${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_RT_MODE}d libcrypto${_OPENSSL_STATIC_SUFFIX}d libeay32${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_RT_MODE}d libeay32${_OPENSSL_STATIC_SUFFIX}d crypto${_OPENSSL_STATIC_SUFFIX}d # When OpenSSL is built with the "-static" option, only the static build is produced, # and it is not suffixed with "_static". libcrypto${_OPENSSL_MSVC_ARCH_SUFFIX}${_OPENSSL_MSVC_RT_MODE}d libcrypto${_OPENSSL_MSVC_RT_MODE}d libcryptod libeay32${_OPENSSL_MSVC_RT_MODE}d libeay32d cryptod NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} PATH_SUFFIXES ${_OPENSSL_PATH_SUFFIXES} ) find_library(LIB_EAY_RELEASE NAMES # When OpenSSL is built with default options, the static library name is suffixed with "_static". # Looking the "libcrypto_static.lib" with a higher priority than "libcrypto.lib" which is the # import library of "libcrypto.dll". libcrypto${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_ARCH_SUFFIX}${_OPENSSL_MSVC_RT_MODE} libcrypto${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_RT_MODE} libcrypto${_OPENSSL_STATIC_SUFFIX} libeay32${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_RT_MODE} libeay32${_OPENSSL_STATIC_SUFFIX} crypto${_OPENSSL_STATIC_SUFFIX} # When OpenSSL is built with the "-static" option, only the static build is produced, # and it is not suffixed with "_static". libcrypto${_OPENSSL_MSVC_ARCH_SUFFIX}${_OPENSSL_MSVC_RT_MODE} libcrypto${_OPENSSL_MSVC_RT_MODE} libcrypto libeay32${_OPENSSL_MSVC_RT_MODE} libeay32 crypto NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} PATH_SUFFIXES ${_OPENSSL_PATH_SUFFIXES} ) find_library(SSL_EAY_DEBUG NAMES # When OpenSSL is built with default options, the static library name is suffixed with "_static". # Looking the "libssl_static.lib" with a higher priority than "libssl.lib" which is the # import library of "libssl.dll". libssl${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_ARCH_SUFFIX}${_OPENSSL_MSVC_RT_MODE}d libssl${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_RT_MODE}d libssl${_OPENSSL_STATIC_SUFFIX}d ssleay32${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_RT_MODE}d ssleay32${_OPENSSL_STATIC_SUFFIX}d ssl${_OPENSSL_STATIC_SUFFIX}d # When OpenSSL is built with the "-static" option, only the static build is produced, # and it is not suffixed with "_static". libssl${_OPENSSL_MSVC_ARCH_SUFFIX}${_OPENSSL_MSVC_RT_MODE}d libssl${_OPENSSL_MSVC_RT_MODE}d libssld ssleay32${_OPENSSL_MSVC_RT_MODE}d ssleay32d ssld NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} PATH_SUFFIXES ${_OPENSSL_PATH_SUFFIXES} ) find_library(SSL_EAY_RELEASE NAMES # When OpenSSL is built with default options, the static library name is suffixed with "_static". # Looking the "libssl_static.lib" with a higher priority than "libssl.lib" which is the # import library of "libssl.dll". libssl${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_ARCH_SUFFIX}${_OPENSSL_MSVC_RT_MODE} libssl${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_RT_MODE} libssl${_OPENSSL_STATIC_SUFFIX} ssleay32${_OPENSSL_STATIC_SUFFIX}${_OPENSSL_MSVC_RT_MODE} ssleay32${_OPENSSL_STATIC_SUFFIX} ssl${_OPENSSL_STATIC_SUFFIX} # When OpenSSL is built with the "-static" option, only the static build is produced, # and it is not suffixed with "_static". libssl${_OPENSSL_MSVC_ARCH_SUFFIX}${_OPENSSL_MSVC_RT_MODE} libssl${_OPENSSL_MSVC_RT_MODE} libssl ssleay32${_OPENSSL_MSVC_RT_MODE} ssleay32 ssl NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} PATH_SUFFIXES ${_OPENSSL_PATH_SUFFIXES} ) set(LIB_EAY_LIBRARY_DEBUG "${LIB_EAY_DEBUG}") set(LIB_EAY_LIBRARY_RELEASE "${LIB_EAY_RELEASE}") set(SSL_EAY_LIBRARY_DEBUG "${SSL_EAY_DEBUG}") set(SSL_EAY_LIBRARY_RELEASE "${SSL_EAY_RELEASE}") include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake) select_library_configurations(LIB_EAY) select_library_configurations(SSL_EAY) mark_as_advanced(LIB_EAY_LIBRARY_DEBUG LIB_EAY_LIBRARY_RELEASE SSL_EAY_LIBRARY_DEBUG SSL_EAY_LIBRARY_RELEASE) set(OPENSSL_SSL_LIBRARY ${SSL_EAY_LIBRARY} ) set(OPENSSL_CRYPTO_LIBRARY ${LIB_EAY_LIBRARY} ) elseif(MINGW) # same player, for MinGW set(LIB_EAY_NAMES crypto libeay32) set(SSL_EAY_NAMES ssl ssleay32) find_library(LIB_EAY NAMES ${LIB_EAY_NAMES} NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} PATH_SUFFIXES "lib/MinGW" "lib" ) find_library(SSL_EAY NAMES ${SSL_EAY_NAMES} NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} PATH_SUFFIXES "lib/MinGW" "lib" ) mark_as_advanced(SSL_EAY LIB_EAY) set(OPENSSL_SSL_LIBRARY ${SSL_EAY} ) set(OPENSSL_CRYPTO_LIBRARY ${LIB_EAY} ) unset(LIB_EAY_NAMES) unset(SSL_EAY_NAMES) else() # Not sure what to pick for -say- intel, let's use the toplevel ones and hope someone report issues: find_library(LIB_EAY NAMES libcrypto libeay32 NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} HINTS ${_OPENSSL_LIBDIR} PATH_SUFFIXES lib ) find_library(SSL_EAY NAMES libssl ssleay32 NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} HINTS ${_OPENSSL_LIBDIR} PATH_SUFFIXES lib ) mark_as_advanced(SSL_EAY LIB_EAY) set(OPENSSL_SSL_LIBRARY ${SSL_EAY} ) set(OPENSSL_CRYPTO_LIBRARY ${LIB_EAY} ) endif() else() find_library(OPENSSL_SSL_LIBRARY NAMES ssl ssleay32 ssleay32MD NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} HINTS ${_OPENSSL_LIBDIR} ${_OPENSSL_LIBRARY_DIRS} PATH_SUFFIXES lib ) find_library(OPENSSL_CRYPTO_LIBRARY NAMES crypto NAMES_PER_DIR ${_OPENSSL_ROOT_HINTS_AND_PATHS} HINTS ${_OPENSSL_LIBDIR} ${_OPENSSL_LIBRARY_DIRS} PATH_SUFFIXES lib ) mark_as_advanced(OPENSSL_CRYPTO_LIBRARY OPENSSL_SSL_LIBRARY) endif() set(OPENSSL_SSL_LIBRARIES ${OPENSSL_SSL_LIBRARY}) set(OPENSSL_CRYPTO_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY}) set(OPENSSL_LIBRARIES ${OPENSSL_SSL_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARIES} ) _OpenSSL_test_and_find_dependencies("${OPENSSL_SSL_LIBRARY}" "${OPENSSL_CRYPTO_LIBRARY}") if(_OpenSSL_has_dependencies) _OpenSSL_add_dependencies( OPENSSL_SSL_LIBRARIES ) _OpenSSL_add_dependencies( OPENSSL_CRYPTO_LIBRARIES ) _OpenSSL_add_dependencies( OPENSSL_LIBRARIES ) endif() function(from_hex HEX DEC) string(TOUPPER "${HEX}" HEX) set(_res 0) string(LENGTH "${HEX}" _strlen) while (_strlen GREATER 0) math(EXPR _res "${_res} * 16") string(SUBSTRING "${HEX}" 0 1 NIBBLE) string(SUBSTRING "${HEX}" 1 -1 HEX) if (NIBBLE STREQUAL "A") math(EXPR _res "${_res} + 10") elseif (NIBBLE STREQUAL "B") math(EXPR _res "${_res} + 11") elseif (NIBBLE STREQUAL "C") math(EXPR _res "${_res} + 12") elseif (NIBBLE STREQUAL "D") math(EXPR _res "${_res} + 13") elseif (NIBBLE STREQUAL "E") math(EXPR _res "${_res} + 14") elseif (NIBBLE STREQUAL "F") math(EXPR _res "${_res} + 15") else() math(EXPR _res "${_res} + ${NIBBLE}") endif() string(LENGTH "${HEX}" _strlen) endwhile() set(${DEC} ${_res} PARENT_SCOPE) endfunction() if(OPENSSL_INCLUDE_DIR AND EXISTS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h") file(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" openssl_version_str REGEX "^#[\t ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])+.*") if(openssl_version_str) # The version number is encoded as 0xMNNFFPPS: major minor fix patch status # The status gives if this is a developer or prerelease and is ignored here. # Major, minor, and fix directly translate into the version numbers shown in # the string. The patch field translates to the single character suffix that # indicates the bug fix state, which 00 -> nothing, 01 -> a, 02 -> b and so # on. string(REGEX REPLACE "^.*OPENSSL_VERSION_NUMBER[\t ]+0x([0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F]).*$" "\\1;\\2;\\3;\\4;\\5" OPENSSL_VERSION_LIST "${openssl_version_str}") list(GET OPENSSL_VERSION_LIST 0 OPENSSL_VERSION_MAJOR) list(GET OPENSSL_VERSION_LIST 1 OPENSSL_VERSION_MINOR) from_hex("${OPENSSL_VERSION_MINOR}" OPENSSL_VERSION_MINOR) list(GET OPENSSL_VERSION_LIST 2 OPENSSL_VERSION_FIX) from_hex("${OPENSSL_VERSION_FIX}" OPENSSL_VERSION_FIX) list(GET OPENSSL_VERSION_LIST 3 OPENSSL_VERSION_PATCH) if (NOT OPENSSL_VERSION_PATCH STREQUAL "00") from_hex("${OPENSSL_VERSION_PATCH}" _tmp) # 96 is the ASCII code of 'a' minus 1 math(EXPR OPENSSL_VERSION_PATCH_ASCII "${_tmp} + 96") unset(_tmp) # Once anyone knows how OpenSSL would call the patch versions beyond 'z' # this should be updated to handle that, too. This has not happened yet # so it is simply ignored here for now. string(ASCII "${OPENSSL_VERSION_PATCH_ASCII}" OPENSSL_VERSION_PATCH_STRING) endif () set(OPENSSL_VERSION "${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MINOR}.${OPENSSL_VERSION_FIX}${OPENSSL_VERSION_PATCH_STRING}") else () # Since OpenSSL 3.0.0, the new version format is MAJOR.MINOR.PATCH and # a new OPENSSL_VERSION_STR macro contains exactly that file(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h" OPENSSL_VERSION_STR REGEX "^#[\t ]*define[\t ]+OPENSSL_VERSION_STR[\t ]+\"([0-9])+\\.([0-9])+\\.([0-9])+\".*") string(REGEX REPLACE "^.*OPENSSL_VERSION_STR[\t ]+\"([0-9]+\\.[0-9]+\\.[0-9]+)\".*$" "\\1" OPENSSL_VERSION_STR "${OPENSSL_VERSION_STR}") set(OPENSSL_VERSION "${OPENSSL_VERSION_STR}") unset(OPENSSL_VERSION_STR) endif () endif () foreach(_comp IN LISTS OpenSSL_FIND_COMPONENTS) if(_comp STREQUAL "Crypto") if(EXISTS "${OPENSSL_INCLUDE_DIR}" AND (EXISTS "${OPENSSL_CRYPTO_LIBRARY}" OR EXISTS "${LIB_EAY_LIBRARY_DEBUG}" OR EXISTS "${LIB_EAY_LIBRARY_RELEASE}") ) set(OpenSSL_${_comp}_FOUND TRUE) else() set(OpenSSL_${_comp}_FOUND FALSE) endif() elseif(_comp STREQUAL "SSL") if(EXISTS "${OPENSSL_INCLUDE_DIR}" AND (EXISTS "${OPENSSL_SSL_LIBRARY}" OR EXISTS "${SSL_EAY_LIBRARY_DEBUG}" OR EXISTS "${SSL_EAY_LIBRARY_RELEASE}") ) set(OpenSSL_${_comp}_FOUND TRUE) else() set(OpenSSL_${_comp}_FOUND FALSE) endif() else() message(WARNING "${_comp} is not a valid OpenSSL component") set(OpenSSL_${_comp}_FOUND FALSE) endif() endforeach() unset(_comp) include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake) find_package_handle_standard_args(OpenSSL REQUIRED_VARS OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR VERSION_VAR OPENSSL_VERSION HANDLE_VERSION_RANGE HANDLE_COMPONENTS FAIL_MESSAGE "Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR" ) mark_as_advanced(OPENSSL_INCLUDE_DIR) if(OPENSSL_FOUND) if(NOT TARGET OpenSSL::Crypto AND (EXISTS "${OPENSSL_CRYPTO_LIBRARY}" OR EXISTS "${LIB_EAY_LIBRARY_DEBUG}" OR EXISTS "${LIB_EAY_LIBRARY_RELEASE}") ) add_library(OpenSSL::Crypto UNKNOWN IMPORTED) set_target_properties(OpenSSL::Crypto PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}") if(EXISTS "${OPENSSL_CRYPTO_LIBRARY}") set_target_properties(OpenSSL::Crypto PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES "C" IMPORTED_LOCATION "${OPENSSL_CRYPTO_LIBRARY}") endif() if(EXISTS "${LIB_EAY_LIBRARY_RELEASE}") set_property(TARGET OpenSSL::Crypto APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_target_properties(OpenSSL::Crypto PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C" IMPORTED_LOCATION_RELEASE "${LIB_EAY_LIBRARY_RELEASE}") endif() if(EXISTS "${LIB_EAY_LIBRARY_DEBUG}") set_property(TARGET OpenSSL::Crypto APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) set_target_properties(OpenSSL::Crypto PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C" IMPORTED_LOCATION_DEBUG "${LIB_EAY_LIBRARY_DEBUG}") endif() _OpenSSL_target_add_dependencies(OpenSSL::Crypto) endif() if(NOT TARGET OpenSSL::SSL AND (EXISTS "${OPENSSL_SSL_LIBRARY}" OR EXISTS "${SSL_EAY_LIBRARY_DEBUG}" OR EXISTS "${SSL_EAY_LIBRARY_RELEASE}") ) add_library(OpenSSL::SSL UNKNOWN IMPORTED) set_target_properties(OpenSSL::SSL PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}") if(EXISTS "${OPENSSL_SSL_LIBRARY}") set_target_properties(OpenSSL::SSL PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES "C" IMPORTED_LOCATION "${OPENSSL_SSL_LIBRARY}") endif() if(EXISTS "${SSL_EAY_LIBRARY_RELEASE}") set_property(TARGET OpenSSL::SSL APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) set_target_properties(OpenSSL::SSL PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C" IMPORTED_LOCATION_RELEASE "${SSL_EAY_LIBRARY_RELEASE}") endif() if(EXISTS "${SSL_EAY_LIBRARY_DEBUG}") set_property(TARGET OpenSSL::SSL APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) set_target_properties(OpenSSL::SSL PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "C" IMPORTED_LOCATION_DEBUG "${SSL_EAY_LIBRARY_DEBUG}") endif() if(TARGET OpenSSL::Crypto) set_target_properties(OpenSSL::SSL PROPERTIES INTERFACE_LINK_LIBRARIES OpenSSL::Crypto) endif() _OpenSSL_target_add_dependencies(OpenSSL::SSL) endif() if("${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_MAJOR}.${OPENSSL_VERSION_FIX}" VERSION_GREATER_EQUAL "0.9.8") if(MSVC) if(EXISTS "${OPENSSL_INCLUDE_DIR}") set(_OPENSSL_applink_paths PATHS ${OPENSSL_INCLUDE_DIR}) endif() find_file(OPENSSL_APPLINK_SOURCE NAMES openssl/applink.c ${_OPENSSL_applink_paths} NO_DEFAULT_PATH) if(OPENSSL_APPLINK_SOURCE) set(_OPENSSL_applink_interface_srcs ${OPENSSL_APPLINK_SOURCE}) endif() endif() if(NOT TARGET OpenSSL::applink) add_library(OpenSSL::applink INTERFACE IMPORTED) set_property(TARGET OpenSSL::applink APPEND PROPERTY INTERFACE_SOURCES ${_OPENSSL_applink_interface_srcs}) endif() endif() endif() # Restore the original find library ordering if(OPENSSL_USE_STATIC_LIBS) set(CMAKE_FIND_LIBRARY_SUFFIXES ${_openssl_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES}) endif()
Close