diff options
| author | myd7349 <myd7349@gmail.com> | 2020-06-11 16:00:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-11 01:00:07 -0700 |
| commit | cb537a2aeef96e96663d4b2fa3a6f18dcd1b5457 (patch) | |
| tree | 1140aa6313490c4dd3d6c5b60b5e6ac100a86c84 /ports/licensepp/FindCryptoPP.cmake | |
| parent | 1901067fc673c25b76a67cc2d18d0d827e9e59b0 (diff) | |
| download | vcpkg-cb537a2aeef96e96663d4b2fa3a6f18dcd1b5457.tar.gz vcpkg-cb537a2aeef96e96663d4b2fa3a6f18dcd1b5457.zip | |
[licensepp] Add new port (#11711)
* [licensepp] Add new port
* [cryptopp-pem] Update to a newer version that will make lincensepp happy
* Revert "[cryptopp-pem] Update to a newer version that will make lincensepp happy"
This reverts commit 726e3ce3d20bc6266bc7bf63cb35572fe297869f.
This version can not compile with cryptopp.
* [licensepp] Finish it
* [licensepp] Fix interface include directory
* [licensepp] Fixup cmake targets
* [licensepp] -O3 is not recognised by msvc
* [licensepp] Fix _iterator_debug_level value mismatch
* [licensepp] Update patch file
* [licensepp] Fail fast on UWP
* [licensepp] Simplify patch file
* [licensepp] Tabs -> Spaces
Diffstat (limited to 'ports/licensepp/FindCryptoPP.cmake')
| -rw-r--r-- | ports/licensepp/FindCryptoPP.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ports/licensepp/FindCryptoPP.cmake b/ports/licensepp/FindCryptoPP.cmake new file mode 100644 index 000000000..c7e0f709c --- /dev/null +++ b/ports/licensepp/FindCryptoPP.cmake @@ -0,0 +1,27 @@ +find_path(CRYPTOPP_INCLUDE_DIRS NAMES cryptopp/cryptlib.h) + +get_filename_component(_prefix_path ${CRYPTOPP_INCLUDE_DIRS} PATH) + +find_library( + CRYPTOPP_LIBRARY_DEBUG + NAMES cryptopp-static cryptopp + PATHS ${_prefix_path}/debug/lib + NO_DEFAULT_PATH +) +find_library( + CRYPTOPP_LIBRARY_RELEASE + NAMES cryptopp-static cryptopp + PATHS ${_prefix_path}/lib + NO_DEFAULT_PATH +) + +unset(_prefix_path) + +include(SelectLibraryConfigurations) +select_library_configurations(CRYPTOPP) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args( + CryptoPP + REQUIRED_VARS CRYPTOPP_LIBRARIES CRYPTOPP_INCLUDE_DIRS +) |
