Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit d93b0ed

Browse files
committed
Add System.Security.Cryptography.Native to build
1 parent 7f2f5fa commit d93b0ed

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Native/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ else ()
2323
message(FATAL_ERROR "Unknown build type. Set CMAKE_BUILD_TYPE to DEBUG or RELEASE.")
2424
endif ()
2525

26-
add_subdirectory(System.IO.Native)
26+
add_subdirectory(System.IO.Native)
27+
add_subdirectory(System.Security.Cryptography.Native)
28+

src/Native/System.Security.Cryptography.Native/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@ project(System.Security.Cryptography.Native)
44
set(CMAKE_INCLUDE_CURRENT_DIR ON)
55

66
add_definitions(-DPIC=1)
7-
add_definitions(-DBIT64=1)
87

98
find_library(CRYPTO NAMES crypto)
109
if(CRYPTO STREQUAL CRYPTO-NOTFOUND)
1110
message(WARNING "Cannot find libcrypto, skipping build for System.Security.Cryptography.Native. .NET cryptography is not expected to function. Try installing libssl-dev (or the appropriate package for your platform)")
1211
return()
1312
endif()
1413

15-
add_compile_options(-fPIC)
16-
1714
set(NATIVECRYPTO_SOURCES
1815
openssl.c
1916
)

0 commit comments

Comments
 (0)