mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-17 10:07:36 +00:00
[cryptopp] fix build by disabling assembly on osx (#6821)
* [cryptopp] fix build by disabling assembly on osx * [cryptopp] Bump control version
This commit is contained in:
parent
4c898ffc40
commit
e2d5324c57
@ -1,3 +1,3 @@
|
||||
Source: cryptopp
|
||||
Version: 8.1.0
|
||||
Version: 8.1.0-1
|
||||
Description: Crypto++ is a free C++ class library of cryptographic schemes.
|
||||
|
@ -26,6 +26,14 @@ vcpkg_from_github(
|
||||
file(COPY ${CMAKE_SOURCE_PATH}/cryptopp-config.cmake DESTINATION ${SOURCE_PATH})
|
||||
file(COPY ${CMAKE_SOURCE_PATH}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
# disable assembly on OSX to fix broken build
|
||||
if(APPLE)
|
||||
set(CRYPTOPP_DISABLE_ASM "ON")
|
||||
else()
|
||||
set(CRYPTOPP_DISABLE_ASM "OFF")
|
||||
endif()
|
||||
|
||||
|
||||
# Dynamic linking should be avoided for Crypto++ to reduce the attack surface,
|
||||
# so generate a static lib for both dynamic and static vcpkg targets.
|
||||
# See also:
|
||||
@ -40,6 +48,7 @@ vcpkg_configure_cmake(
|
||||
-DBUILD_STATIC=ON
|
||||
-DBUILD_TESTING=OFF
|
||||
-DBUILD_DOCUMENTATION=OFF
|
||||
-DDISABLE_ASM=${CRYPTOPP_DISABLE_ASM}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
Loading…
x
Reference in New Issue
Block a user