2019-06-11 08:31:43 +08:00
|
|
|
diff --git a/cmake/AwsCFlags.cmake b/cmake/AwsCFlags.cmake
|
2019-08-25 04:43:57 +08:00
|
|
|
index 0f597d7..1359b8b 100644
|
2019-06-11 08:31:43 +08:00
|
|
|
--- a/cmake/AwsCFlags.cmake
|
|
|
|
+++ b/cmake/AwsCFlags.cmake
|
2019-08-25 04:43:57 +08:00
|
|
|
@@ -35,15 +35,6 @@ function(aws_set_common_properties target)
|
|
|
|
# /volatile:iso relaxes some implicit memory barriers that MSVC normally applies for volatile accesses
|
|
|
|
# Since we want to be compatible with user builds using /volatile:iso, use it for the tests.
|
|
|
|
list(APPEND AWS_C_FLAGS /volatile:iso)
|
|
|
|
-
|
2019-06-11 08:31:43 +08:00
|
|
|
- string(TOUPPER "${CMAKE_BUILD_TYPE}" _CMAKE_BUILD_TYPE)
|
|
|
|
- if(STATIC_CRT)
|
|
|
|
- string(REPLACE "/MD" "/MT" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}")
|
|
|
|
- else()
|
|
|
|
- string(REPLACE "/MT" "/MD" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}")
|
|
|
|
- endif()
|
|
|
|
- string(REPLACE " " ";" _FLAGS "${_FLAGS}")
|
|
|
|
- list(APPEND AWS_C_FLAGS "${_FLAGS}")
|
2019-08-25 04:43:57 +08:00
|
|
|
|
2019-06-11 08:31:43 +08:00
|
|
|
else()
|
|
|
|
list(APPEND AWS_C_FLAGS -Wall -Werror -Wstrict-prototypes)
|