Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Aug 16, 2024
1 parent 49cd61b commit 842c686
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,20 @@ if(BUILD_DEPS)
if(NOT USE_OPENSSL)
include(AwsPrebuildDependency)

set(AWS_LC_CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set(AWSLC_CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")

# temporarily disable certain warnings as errors for the aws-lc build
if(NOT MSVC)
check_c_compiler_flag(-Wno-stringop-overflow HAS_WNO_STRINGOP_OVERFLOW)

if(HAS_WNO_STRINGOP_OVERFLOW)
set(AWS_LC_CMAKE_C_FLAGS "${AWS_LC_CMAKE_C_FLAGS} -Wno-stringop-overflow")
set(AWSLC_CMAKE_C_FLAGS "${AWSLC_CMAKE_C_FLAGS} -Wno-stringop-overflow")
endif()

check_c_compiler_flag(-Wno-array-parameter HAS_WNO_ARRAY_PARAMETER)

if(HAS_WNO_ARRAY_PARAMETER)
set(AWS_LC_CMAKE_C_FLAGS "${AWS_LC_CMAKE_C_FLAGS} -Wno-array-parameter")
set(AWSLC_CMAKE_C_FLAGS "${AWSLC_CMAKE_C_FLAGS} -Wno-array-parameter")
endif()
endif()

Expand All @@ -112,7 +112,7 @@ if(BUILD_DEPS)
-DDISABLE_PERL=ON
-DBUILD_LIBSSL=OFF
-DBUILD_TESTING=OFF
-DCMAKE_C_FLAGS=${AWS_LC_CMAKE_C_FLAGS}
-DCMAKE_C_FLAGS=${AWSLC_CMAKE_C_FLAGS}
)
endif()

Expand Down

0 comments on commit 842c686

Please sign in to comment.