|
1 |
| -diff --git a/cmake/AwsCFlags.cmake b/cmake/AwsCFlags.cmake |
2 |
| -index 0f597d7..1359b8b 100644 |
3 |
| ---- a/cmake/AwsCFlags.cmake |
4 |
| -+++ b/cmake/AwsCFlags.cmake |
5 |
| -@@ -35,15 +35,6 @@ function(aws_set_common_properties target) |
6 |
| - # /volatile:iso relaxes some implicit memory barriers that MSVC normally applies for volatile accesses |
7 |
| - # Since we want to be compatible with user builds using /volatile:iso, use it for the tests. |
8 |
| - list(APPEND AWS_C_FLAGS /volatile:iso) |
9 |
| -- |
10 |
| -- string(TOUPPER "${CMAKE_BUILD_TYPE}" _CMAKE_BUILD_TYPE) |
11 |
| -- if(STATIC_CRT) |
12 |
| -- string(REPLACE "/MD" "/MT" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}") |
13 |
| -- else() |
14 |
| -- string(REPLACE "/MT" "/MD" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}") |
15 |
| -- endif() |
16 |
| -- string(REPLACE " " ";" _FLAGS "${_FLAGS}") |
17 |
| -- list(APPEND AWS_C_FLAGS "${_FLAGS}") |
18 |
| - |
19 |
| - else() |
20 |
| - list(APPEND AWS_C_FLAGS -Wall -Werror -Wstrict-prototypes) |
| 1 | +diff --git a/cmake/AwsCFlags.cmake b/cmake/AwsCFlags.cmake |
| 2 | +index 42d146e..813f56d 100644 |
| 3 | +--- a/cmake/AwsCFlags.cmake |
| 4 | ++++ b/cmake/AwsCFlags.cmake |
| 5 | +@@ -39,15 +39,6 @@ function(aws_set_common_properties target) |
| 6 | + # Since we want to be compatible with user builds using /volatile:iso, use it for the tests. |
| 7 | + list(APPEND AWS_C_FLAGS /volatile:iso) |
| 8 | + |
| 9 | +- string(TOUPPER "${CMAKE_BUILD_TYPE}" _CMAKE_BUILD_TYPE) |
| 10 | +- if(STATIC_CRT) |
| 11 | +- string(REPLACE "/MD" "/MT" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}") |
| 12 | +- else() |
| 13 | +- string(REPLACE "/MT" "/MD" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}") |
| 14 | +- endif() |
| 15 | +- string(REPLACE " " ";" _FLAGS "${_FLAGS}") |
| 16 | +- list(APPEND AWS_C_FLAGS "${_FLAGS}") |
| 17 | +- |
| 18 | + else() |
| 19 | + list(APPEND AWS_C_FLAGS -Wall -Werror -Wstrict-prototypes) |
| 20 | + |
0 commit comments