@@ -165,7 +165,7 @@ endif ()
165
165
if (BUILD_TESTING AND BUILD_SHARED_LIBS OR S2N_FUZZ_TEST)
166
166
target_compile_options (${PROJECT_NAME} PRIVATE -fvisibility=default)
167
167
else ()
168
- target_compile_options (${PROJECT_NAME} PRIVATE -fvisibility=hidden -DS2N_EXPORTS)
168
+ target_compile_options (${PROJECT_NAME} PRIVATE -fvisibility=hidden -DS2N_EXPORTS=1 )
169
169
endif ()
170
170
171
171
if (S2N_LTO)
@@ -197,7 +197,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE -include "${S2N_PRELUDE}")
197
197
# Match on Release, RelWithDebInfo and MinSizeRel
198
198
# See: https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html#variable:CMAKE_BUILD_TYPE
199
199
if (CMAKE_BUILD_TYPE MATCHES Rel)
200
- add_definitions (-DS2N_BUILD_RELEASE)
200
+ add_definitions (-DS2N_BUILD_RELEASE=1 )
201
201
endif ()
202
202
203
203
if (NO_STACK_PROTECTOR)
@@ -251,7 +251,7 @@ endif()
251
251
252
252
if (NOT S2N_OVERRIDE_LIBCRYPTO_RAND_ENGINE)
253
253
message (STATUS "Disabling libcrypto RAND engine override" )
254
- add_definitions (-DS2N_DISABLE_RAND_ENGINE_OVERRIDE)
254
+ add_definitions (-DS2N_DISABLE_RAND_ENGINE_OVERRIDE=1 )
255
255
endif ()
256
256
257
257
# For interning, we need to find the static libcrypto library. Cmake configs
@@ -316,7 +316,7 @@ function(feature_probe_result PROBE_NAME IS_AVAILABLE)
316
316
317
317
# define the probe if available
318
318
if (NORMALIZED)
319
- add_definitions (-D${PROBE_NAME} )
319
+ add_definitions (-D${PROBE_NAME} =1 )
320
320
endif ()
321
321
endfunction ()
322
322
@@ -426,7 +426,7 @@ if (S2N_INTERN_LIBCRYPTO)
426
426
DEPENDS libcrypto.symbols
427
427
)
428
428
add_dependencies (${PROJECT_NAME} s2n_libcrypto)
429
- add_definitions (-DS2N_INTERN_LIBCRYPTO)
429
+ add_definitions (-DS2N_INTERN_LIBCRYPTO=1 )
430
430
431
431
if ((BUILD_SHARED_LIBS AND BUILD_TESTING) OR NOT BUILD_SHARED_LIBS )
432
432
# if libcrypto needs to be interned, rewrite libcrypto references so use of internal functions will link correctly
0 commit comments