@@ -165,7 +165,7 @@ endif ()
165165if (BUILD_TESTING AND BUILD_SHARED_LIBS OR S2N_FUZZ_TEST)
166166 target_compile_options (${PROJECT_NAME} PRIVATE -fvisibility=default )
167167else ()
168- target_compile_options (${PROJECT_NAME} PRIVATE -fvisibility=hidden -DS2N_EXPORTS )
168+ target_compile_options (${PROJECT_NAME} PRIVATE -fvisibility=hidden -DS2N_EXPORTS=1 )
169169endif ()
170170
171171if (S2N_LTO)
@@ -197,7 +197,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE -include "${S2N_PRELUDE}")
197197# Match on Release, RelWithDebInfo and MinSizeRel
198198# See: https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html#variable:CMAKE_BUILD_TYPE
199199if (CMAKE_BUILD_TYPE MATCHES Rel)
200- add_definitions (-DS2N_BUILD_RELEASE )
200+ add_definitions (-DS2N_BUILD_RELEASE=1 )
201201endif ()
202202
203203if (NO_STACK_PROTECTOR)
@@ -251,7 +251,7 @@ endif()
251251
252252if (NOT S2N_OVERRIDE_LIBCRYPTO_RAND_ENGINE)
253253 message (STATUS "Disabling libcrypto RAND engine override" )
254- add_definitions (-DS2N_DISABLE_RAND_ENGINE_OVERRIDE )
254+ add_definitions (-DS2N_DISABLE_RAND_ENGINE_OVERRIDE=1 )
255255endif ()
256256
257257# For interning, we need to find the static libcrypto library. Cmake configs
@@ -316,7 +316,7 @@ function(feature_probe_result PROBE_NAME IS_AVAILABLE)
316316
317317 # define the probe if available
318318 if (NORMALIZED)
319- add_definitions (-D${PROBE_NAME} )
319+ add_definitions (-D${PROBE_NAME}=1 )
320320 endif ()
321321endfunction ()
322322
@@ -426,7 +426,7 @@ if (S2N_INTERN_LIBCRYPTO)
426426 DEPENDS libcrypto.symbols
427427 )
428428 add_dependencies (${PROJECT_NAME} s2n_libcrypto )
429- add_definitions (-DS2N_INTERN_LIBCRYPTO )
429+ add_definitions (-DS2N_INTERN_LIBCRYPTO=1 )
430430
431431 if ((BUILD_SHARED_LIBS AND BUILD_TESTING) OR NOT BUILD_SHARED_LIBS )
432432 # if libcrypto needs to be interned, rewrite libcrypto references so use of internal functions will link correctly
0 commit comments