Skip to content

Commit edb9a71

Browse files
fix: exclude DllMain with static build (#128)
Additionally,DLL is a hack only for the FIPS test, which is no longer actively maintained.
1 parent 00a151f commit edb9a71

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cryptopp/sources.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ set(cryptopp_SOURCES
6464
files.cpp
6565
filters.cpp
6666
fips140.cpp
67-
fipstest.cpp
6867
gcm.cpp
6968
gcm_simd.cpp
7069
gf256.cpp
@@ -185,6 +184,14 @@ set(cryptopp_SOURCES
185184
zlib.cpp
186185
)
187186

187+
if(CRYPTOPP_BUILD_SHARED)
188+
list(
189+
APPEND
190+
cryptopp_SOURCES
191+
fipstest.cpp
192+
)
193+
endif()
194+
188195
set(cryptopp_SOURCES_PEM
189196
"${cryptopp-pem_SOURCE_DIR}/pem_common.cpp"
190197
"${cryptopp-pem_SOURCE_DIR}/pem_read.cpp"

0 commit comments

Comments
 (0)