From b5e4f6bb14e425edc9390341f38f754f6c2fb5f0 Mon Sep 17 00:00:00 2001 From: Justin Smith Date: Mon, 15 Apr 2024 09:04:14 -0400 Subject: [PATCH] per PR feedback --- aws-lc-fips-sys/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aws-lc-fips-sys/CMakeLists.txt b/aws-lc-fips-sys/CMakeLists.txt index 3aec934a133..940752d4eac 100644 --- a/aws-lc-fips-sys/CMakeLists.txt +++ b/aws-lc-fips-sys/CMakeLists.txt @@ -62,6 +62,7 @@ if (BORINGSSL_PREFIX) set_my_target_properties(PREFIX ${TARGET_PREFIX}) # This BORINGSSL_PREFIX has an "_" appended, so we must remove it - string(REGEX REPLACE "_$" "" BORINGSSL_PREFIX_MACRO ${BORINGSSL_PREFIX}) + set(BORINGSSL_PREFIX_MACRO "${BORINGSSL_PREFIX}") + string(REGEX REPLACE "_$" "" BORINGSSL_PREFIX_MACRO ${BORINGSSL_PREFIX_MACRO}) add_definitions(-DBORINGSSL_PREFIX=${BORINGSSL_PREFIX_MACRO}) endif ()