mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 08:38:59 +08:00
09ff6245de
* [libfido2] New port * [libfido2] Update versions * [libfido2] Fixed invalid dll rename in static library versions * [libfido2] Update versions * [libfido2] Exclude UWP from supported platforms * [libfido2] Update versions * [libfido2] Bump version to new upstream 1.7 release * [libfido2] Update versions * Fix indenting Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [libfido2] Implement multiple issues/suggestions from PR * [libfido2] Update versions * [libfido2] Removed surplus option from vcpkg_from_github * [libfido2] Update versions * [libfido2] Apply suggested changes to use the new vcpkg-cmake port * [libfido2] Update versions * [libfido2] Reapply formatting * [libfido2] Update versions * [libfido2] Changed dependency entry for vcpkg-cmake * [libfido2] Update versions * [libfido2] New port * [libfido2] Update versions * [libfido2] Fixed invalid dll rename in static library versions * [libfido2] Update versions * [libfido2] Exclude UWP from supported platforms * [libfido2] Update versions * [libfido2] Bump version to new upstream 1.7 release * [libfido2] Update versions * Fix indenting Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [libfido2] Implement multiple issues/suggestions from PR * [libfido2] Update versions * [libfido2] Removed surplus option from vcpkg_from_github * [libfido2] Update versions * [libfido2] Apply suggested changes to use the new vcpkg-cmake port * [libfido2] Update versions * [libfido2] Reapply formatting * [libfido2] Update versions * [libfido2] Changed dependency entry for vcpkg-cmake * [libfido2] Update versions Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
49 lines
1.7 KiB
Diff
49 lines
1.7 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 1eb8726..b308597 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -161,16 +161,20 @@ if(UNIX)
|
|
endif()
|
|
|
|
if(MSVC)
|
|
- if((NOT CBOR_INCLUDE_DIRS) OR (NOT CBOR_LIBRARY_DIRS) OR
|
|
- (NOT CRYPTO_INCLUDE_DIRS) OR (NOT CRYPTO_LIBRARY_DIRS) OR
|
|
- (NOT ZLIB_INCLUDE_DIRS) OR (NOT ZLIB_LIBRARY_DIRS))
|
|
- message(FATAL_ERROR "please provide definitions for "
|
|
- "{CBOR,CRYPTO,ZLIB}_{INCLUDE,LIBRARY}_DIRS when building "
|
|
- "under msvc")
|
|
- endif()
|
|
- set(CBOR_LIBRARIES cbor)
|
|
- set(ZLIB_LIBRARIES zlib)
|
|
- set(CRYPTO_LIBRARIES crypto-46)
|
|
+ include(FindPkgConfig)
|
|
+
|
|
+ find_package(LIBCBOR REQUIRED)
|
|
+ find_package(OpenSSL REQUIRED)
|
|
+ find_package(ZLIB REQUIRED)
|
|
+
|
|
+ # Handling of different Packagenames in VCPKG
|
|
+ set(CBOR_INCLUDE_DIRS ${LIBCBOR_INCLUDE_DIR})
|
|
+ set(CRYPTO_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIRS})
|
|
+ set(CBOR_LIBRARY_DIRS ${LIBCBOR_LIBRARY_DIRS})
|
|
+ set(CRYPTO_LIBRARY_DIRS ${OPENSSL_LIBRARY_DIRS})
|
|
+ set(CBOR_LIBRARIES ${LIBCBOR_LIBRARIES})
|
|
+ set(CRYPTO_LIBRARIES ${OPENSSL_LIBRARIES})
|
|
+ add_definitions("-D_CRT_SECURE_NO_WARNINGS" "-D_CRT_NONSTDC_NO_DEPRECATE")
|
|
set(MSVC_DISABLED_WARNINGS_LIST
|
|
"C4200" # nonstandard extension used: zero-sized array in
|
|
# struct/union;
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 11b0bb5..d820ff3 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -120,7 +120,7 @@ if(BUILD_SHARED_LIBS)
|
|
install(TARGETS fido2_shared
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|
endif()
|
|
|
|
install(FILES fido.h DESTINATION include)
|