From b9ffa49c8f2c6d0574b592828d23714229c81283 Mon Sep 17 00:00:00 2001 From: Peter van der Heijden Date: Sat, 2 Nov 2024 20:19:47 +0100 Subject: [PATCH 1/5] Add /WX (warnings as errors) compile flag when compiling with MSVC. --- exercises/concept/doctor-data/CMakeLists.txt | 3 ++- exercises/concept/election-day/CMakeLists.txt | 3 ++- exercises/concept/ellens-alien-game/CMakeLists.txt | 3 ++- exercises/concept/freelancer-rates/CMakeLists.txt | 3 ++- exercises/concept/interest-is-interesting/CMakeLists.txt | 3 ++- exercises/concept/lasagna-master/CMakeLists.txt | 3 ++- exercises/concept/lasagna/CMakeLists.txt | 3 ++- exercises/concept/last-will/CMakeLists.txt | 3 ++- exercises/concept/log-levels/CMakeLists.txt | 3 ++- exercises/concept/making-the-grade/CMakeLists.txt | 3 ++- exercises/concept/pacman-rules/CMakeLists.txt | 3 ++- exercises/concept/troll-the-trolls/CMakeLists.txt | 3 ++- exercises/concept/vehicle-purchase/CMakeLists.txt | 3 ++- exercises/practice/acronym/CMakeLists.txt | 3 ++- exercises/practice/all-your-base/CMakeLists.txt | 3 ++- exercises/practice/allergies/CMakeLists.txt | 3 ++- exercises/practice/anagram/CMakeLists.txt | 3 ++- exercises/practice/armstrong-numbers/CMakeLists.txt | 3 ++- exercises/practice/atbash-cipher/CMakeLists.txt | 3 ++- exercises/practice/bank-account/CMakeLists.txt | 3 ++- exercises/practice/beer-song/CMakeLists.txt | 3 ++- exercises/practice/binary-search-tree/CMakeLists.txt | 3 ++- exercises/practice/binary-search/CMakeLists.txt | 3 ++- exercises/practice/binary/CMakeLists.txt | 3 ++- exercises/practice/bob/CMakeLists.txt | 3 ++- exercises/practice/circular-buffer/CMakeLists.txt | 3 ++- exercises/practice/clock/CMakeLists.txt | 3 ++- exercises/practice/collatz-conjecture/CMakeLists.txt | 3 ++- exercises/practice/complex-numbers/CMakeLists.txt | 3 ++- exercises/practice/crypto-square/CMakeLists.txt | 3 ++- exercises/practice/darts/CMakeLists.txt | 5 +++-- exercises/practice/diamond/CMakeLists.txt | 3 ++- exercises/practice/difference-of-squares/CMakeLists.txt | 3 ++- exercises/practice/dnd-character/CMakeLists.txt | 3 ++- exercises/practice/eliuds-eggs/CMakeLists.txt | 3 ++- exercises/practice/etl/CMakeLists.txt | 3 ++- exercises/practice/food-chain/CMakeLists.txt | 3 ++- exercises/practice/gigasecond/CMakeLists.txt | 3 ++- exercises/practice/grade-school/CMakeLists.txt | 3 ++- exercises/practice/grains/CMakeLists.txt | 3 ++- exercises/practice/hamming/CMakeLists.txt | 3 ++- exercises/practice/hello-world/CMakeLists.txt | 3 ++- exercises/practice/hexadecimal/CMakeLists.txt | 3 ++- exercises/practice/high-scores/CMakeLists.txt | 3 ++- exercises/practice/isbn-verifier/CMakeLists.txt | 5 +++-- exercises/practice/isogram/CMakeLists.txt | 3 ++- exercises/practice/kindergarten-garden/CMakeLists.txt | 3 ++- exercises/practice/knapsack/CMakeLists.txt | 3 ++- exercises/practice/largest-series-product/CMakeLists.txt | 5 +++-- exercises/practice/leap/CMakeLists.txt | 3 ++- exercises/practice/linked-list/CMakeLists.txt | 3 ++- exercises/practice/list-ops/CMakeLists.txt | 3 ++- exercises/practice/luhn/CMakeLists.txt | 3 ++- exercises/practice/matching-brackets/CMakeLists.txt | 3 ++- exercises/practice/meetup/CMakeLists.txt | 3 ++- exercises/practice/minesweeper/CMakeLists.txt | 3 ++- exercises/practice/nth-prime/CMakeLists.txt | 3 ++- exercises/practice/nucleotide-count/CMakeLists.txt | 3 ++- exercises/practice/pangram/CMakeLists.txt | 3 ++- exercises/practice/parallel-letter-frequency/CMakeLists.txt | 3 ++- exercises/practice/pascals-triangle/CMakeLists.txt | 3 ++- exercises/practice/perfect-numbers/CMakeLists.txt | 3 ++- exercises/practice/phone-number/CMakeLists.txt | 3 ++- exercises/practice/pig-latin/CMakeLists.txt | 3 ++- exercises/practice/prime-factors/CMakeLists.txt | 3 ++- exercises/practice/protein-translation/CMakeLists.txt | 3 ++- exercises/practice/queen-attack/CMakeLists.txt | 3 ++- exercises/practice/rail-fence-cipher/CMakeLists.txt | 3 ++- exercises/practice/raindrops/CMakeLists.txt | 3 ++- exercises/practice/resistor-color-duo/CMakeLists.txt | 3 ++- exercises/practice/resistor-color/CMakeLists.txt | 3 ++- exercises/practice/reverse-string/CMakeLists.txt | 3 ++- exercises/practice/rna-transcription/CMakeLists.txt | 3 ++- exercises/practice/robot-name/CMakeLists.txt | 3 ++- exercises/practice/robot-simulator/CMakeLists.txt | 3 ++- exercises/practice/roman-numerals/CMakeLists.txt | 3 ++- exercises/practice/rotational-cipher/CMakeLists.txt | 3 ++- exercises/practice/run-length-encoding/CMakeLists.txt | 3 ++- exercises/practice/say/CMakeLists.txt | 3 ++- exercises/practice/scrabble-score/CMakeLists.txt | 3 ++- exercises/practice/secret-handshake/CMakeLists.txt | 3 ++- exercises/practice/series/CMakeLists.txt | 3 ++- exercises/practice/simple-linked-list/CMakeLists.txt | 3 ++- exercises/practice/space-age/CMakeLists.txt | 3 ++- exercises/practice/spiral-matrix/CMakeLists.txt | 3 ++- exercises/practice/sublist/CMakeLists.txt | 3 ++- exercises/practice/sum-of-multiples/CMakeLists.txt | 3 ++- exercises/practice/triangle/CMakeLists.txt | 3 ++- exercises/practice/trinary/CMakeLists.txt | 3 ++- exercises/practice/two-bucket/CMakeLists.txt | 3 ++- exercises/practice/two-fer/CMakeLists.txt | 3 ++- exercises/practice/word-count/CMakeLists.txt | 3 ++- exercises/practice/yacht/CMakeLists.txt | 3 ++- exercises/practice/zebra-puzzle/CMakeLists.txt | 3 ++- 94 files changed, 191 insertions(+), 97 deletions(-) diff --git a/exercises/concept/doctor-data/CMakeLists.txt b/exercises/concept/doctor-data/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/concept/doctor-data/CMakeLists.txt +++ b/exercises/concept/doctor-data/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/election-day/CMakeLists.txt b/exercises/concept/election-day/CMakeLists.txt index e46606bd5..ae63c361e 100644 --- a/exercises/concept/election-day/CMakeLists.txt +++ b/exercises/concept/election-day/CMakeLists.txt @@ -60,7 +60,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/ellens-alien-game/CMakeLists.txt b/exercises/concept/ellens-alien-game/CMakeLists.txt index b79c51e67..416814875 100644 --- a/exercises/concept/ellens-alien-game/CMakeLists.txt +++ b/exercises/concept/ellens-alien-game/CMakeLists.txt @@ -59,7 +59,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/freelancer-rates/CMakeLists.txt b/exercises/concept/freelancer-rates/CMakeLists.txt index b79c51e67..416814875 100644 --- a/exercises/concept/freelancer-rates/CMakeLists.txt +++ b/exercises/concept/freelancer-rates/CMakeLists.txt @@ -59,7 +59,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/interest-is-interesting/CMakeLists.txt b/exercises/concept/interest-is-interesting/CMakeLists.txt index b79c51e67..416814875 100644 --- a/exercises/concept/interest-is-interesting/CMakeLists.txt +++ b/exercises/concept/interest-is-interesting/CMakeLists.txt @@ -59,7 +59,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/lasagna-master/CMakeLists.txt b/exercises/concept/lasagna-master/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/concept/lasagna-master/CMakeLists.txt +++ b/exercises/concept/lasagna-master/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/lasagna/CMakeLists.txt b/exercises/concept/lasagna/CMakeLists.txt index b79c51e67..416814875 100644 --- a/exercises/concept/lasagna/CMakeLists.txt +++ b/exercises/concept/lasagna/CMakeLists.txt @@ -59,7 +59,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/last-will/CMakeLists.txt b/exercises/concept/last-will/CMakeLists.txt index b79c51e67..416814875 100644 --- a/exercises/concept/last-will/CMakeLists.txt +++ b/exercises/concept/last-will/CMakeLists.txt @@ -59,7 +59,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/log-levels/CMakeLists.txt b/exercises/concept/log-levels/CMakeLists.txt index 621e22b9e..356dcf4f4 100644 --- a/exercises/concept/log-levels/CMakeLists.txt +++ b/exercises/concept/log-levels/CMakeLists.txt @@ -59,7 +59,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/making-the-grade/CMakeLists.txt b/exercises/concept/making-the-grade/CMakeLists.txt index e46606bd5..ae63c361e 100644 --- a/exercises/concept/making-the-grade/CMakeLists.txt +++ b/exercises/concept/making-the-grade/CMakeLists.txt @@ -60,7 +60,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/pacman-rules/CMakeLists.txt b/exercises/concept/pacman-rules/CMakeLists.txt index b79c51e67..416814875 100644 --- a/exercises/concept/pacman-rules/CMakeLists.txt +++ b/exercises/concept/pacman-rules/CMakeLists.txt @@ -59,7 +59,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/troll-the-trolls/CMakeLists.txt b/exercises/concept/troll-the-trolls/CMakeLists.txt index b79c51e67..416814875 100644 --- a/exercises/concept/troll-the-trolls/CMakeLists.txt +++ b/exercises/concept/troll-the-trolls/CMakeLists.txt @@ -59,7 +59,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/concept/vehicle-purchase/CMakeLists.txt b/exercises/concept/vehicle-purchase/CMakeLists.txt index 2beb1d2b4..47259b793 100644 --- a/exercises/concept/vehicle-purchase/CMakeLists.txt +++ b/exercises/concept/vehicle-purchase/CMakeLists.txt @@ -62,7 +62,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/acronym/CMakeLists.txt b/exercises/practice/acronym/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/acronym/CMakeLists.txt +++ b/exercises/practice/acronym/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/all-your-base/CMakeLists.txt b/exercises/practice/all-your-base/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/all-your-base/CMakeLists.txt +++ b/exercises/practice/all-your-base/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/allergies/CMakeLists.txt b/exercises/practice/allergies/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/allergies/CMakeLists.txt +++ b/exercises/practice/allergies/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/anagram/CMakeLists.txt b/exercises/practice/anagram/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/anagram/CMakeLists.txt +++ b/exercises/practice/anagram/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/armstrong-numbers/CMakeLists.txt b/exercises/practice/armstrong-numbers/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/armstrong-numbers/CMakeLists.txt +++ b/exercises/practice/armstrong-numbers/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/atbash-cipher/CMakeLists.txt b/exercises/practice/atbash-cipher/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/atbash-cipher/CMakeLists.txt +++ b/exercises/practice/atbash-cipher/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/bank-account/CMakeLists.txt b/exercises/practice/bank-account/CMakeLists.txt index 35dff48c4..a60245932 100644 --- a/exercises/practice/bank-account/CMakeLists.txt +++ b/exercises/practice/bank-account/CMakeLists.txt @@ -61,7 +61,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/beer-song/CMakeLists.txt b/exercises/practice/beer-song/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/beer-song/CMakeLists.txt +++ b/exercises/practice/beer-song/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/binary-search-tree/CMakeLists.txt b/exercises/practice/binary-search-tree/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/binary-search-tree/CMakeLists.txt +++ b/exercises/practice/binary-search-tree/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/binary-search/CMakeLists.txt b/exercises/practice/binary-search/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/binary-search/CMakeLists.txt +++ b/exercises/practice/binary-search/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/binary/CMakeLists.txt b/exercises/practice/binary/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/binary/CMakeLists.txt +++ b/exercises/practice/binary/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/bob/CMakeLists.txt b/exercises/practice/bob/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/bob/CMakeLists.txt +++ b/exercises/practice/bob/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/circular-buffer/CMakeLists.txt b/exercises/practice/circular-buffer/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/circular-buffer/CMakeLists.txt +++ b/exercises/practice/circular-buffer/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/clock/CMakeLists.txt b/exercises/practice/clock/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/clock/CMakeLists.txt +++ b/exercises/practice/clock/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/collatz-conjecture/CMakeLists.txt b/exercises/practice/collatz-conjecture/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/collatz-conjecture/CMakeLists.txt +++ b/exercises/practice/collatz-conjecture/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/complex-numbers/CMakeLists.txt b/exercises/practice/complex-numbers/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/complex-numbers/CMakeLists.txt +++ b/exercises/practice/complex-numbers/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/crypto-square/CMakeLists.txt b/exercises/practice/crypto-square/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/crypto-square/CMakeLists.txt +++ b/exercises/practice/crypto-square/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/darts/CMakeLists.txt b/exercises/practice/darts/CMakeLists.txt index 6069efae3..6360bc2eb 100644 --- a/exercises/practice/darts/CMakeLists.txt +++ b/exercises/practice/darts/CMakeLists.txt @@ -57,8 +57,9 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build -add_custom_target(test_${exercise} ALL DEPENDS ${exercise} COMMAND ${exercise}) \ No newline at end of file +add_custom_target(test_${exercise} ALL DEPENDS ${exercise} COMMAND ${exercise}) diff --git a/exercises/practice/diamond/CMakeLists.txt b/exercises/practice/diamond/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/diamond/CMakeLists.txt +++ b/exercises/practice/diamond/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/difference-of-squares/CMakeLists.txt b/exercises/practice/difference-of-squares/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/difference-of-squares/CMakeLists.txt +++ b/exercises/practice/difference-of-squares/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/dnd-character/CMakeLists.txt b/exercises/practice/dnd-character/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/dnd-character/CMakeLists.txt +++ b/exercises/practice/dnd-character/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/eliuds-eggs/CMakeLists.txt b/exercises/practice/eliuds-eggs/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/eliuds-eggs/CMakeLists.txt +++ b/exercises/practice/eliuds-eggs/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/etl/CMakeLists.txt b/exercises/practice/etl/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/etl/CMakeLists.txt +++ b/exercises/practice/etl/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/food-chain/CMakeLists.txt b/exercises/practice/food-chain/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/food-chain/CMakeLists.txt +++ b/exercises/practice/food-chain/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/gigasecond/CMakeLists.txt b/exercises/practice/gigasecond/CMakeLists.txt index e0b1e6b11..996281fee 100644 --- a/exercises/practice/gigasecond/CMakeLists.txt +++ b/exercises/practice/gigasecond/CMakeLists.txt @@ -68,7 +68,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/grade-school/CMakeLists.txt b/exercises/practice/grade-school/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/grade-school/CMakeLists.txt +++ b/exercises/practice/grade-school/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/grains/CMakeLists.txt b/exercises/practice/grains/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/grains/CMakeLists.txt +++ b/exercises/practice/grains/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/hamming/CMakeLists.txt b/exercises/practice/hamming/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/hamming/CMakeLists.txt +++ b/exercises/practice/hamming/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/hello-world/CMakeLists.txt b/exercises/practice/hello-world/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/hello-world/CMakeLists.txt +++ b/exercises/practice/hello-world/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/hexadecimal/CMakeLists.txt b/exercises/practice/hexadecimal/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/hexadecimal/CMakeLists.txt +++ b/exercises/practice/hexadecimal/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/high-scores/CMakeLists.txt b/exercises/practice/high-scores/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/high-scores/CMakeLists.txt +++ b/exercises/practice/high-scores/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/isbn-verifier/CMakeLists.txt b/exercises/practice/isbn-verifier/CMakeLists.txt index 6069efae3..6360bc2eb 100644 --- a/exercises/practice/isbn-verifier/CMakeLists.txt +++ b/exercises/practice/isbn-verifier/CMakeLists.txt @@ -57,8 +57,9 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build -add_custom_target(test_${exercise} ALL DEPENDS ${exercise} COMMAND ${exercise}) \ No newline at end of file +add_custom_target(test_${exercise} ALL DEPENDS ${exercise} COMMAND ${exercise}) diff --git a/exercises/practice/isogram/CMakeLists.txt b/exercises/practice/isogram/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/isogram/CMakeLists.txt +++ b/exercises/practice/isogram/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/kindergarten-garden/CMakeLists.txt b/exercises/practice/kindergarten-garden/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/kindergarten-garden/CMakeLists.txt +++ b/exercises/practice/kindergarten-garden/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/knapsack/CMakeLists.txt b/exercises/practice/knapsack/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/knapsack/CMakeLists.txt +++ b/exercises/practice/knapsack/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/largest-series-product/CMakeLists.txt b/exercises/practice/largest-series-product/CMakeLists.txt index 6069efae3..6360bc2eb 100644 --- a/exercises/practice/largest-series-product/CMakeLists.txt +++ b/exercises/practice/largest-series-product/CMakeLists.txt @@ -57,8 +57,9 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build -add_custom_target(test_${exercise} ALL DEPENDS ${exercise} COMMAND ${exercise}) \ No newline at end of file +add_custom_target(test_${exercise} ALL DEPENDS ${exercise} COMMAND ${exercise}) diff --git a/exercises/practice/leap/CMakeLists.txt b/exercises/practice/leap/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/leap/CMakeLists.txt +++ b/exercises/practice/leap/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/linked-list/CMakeLists.txt b/exercises/practice/linked-list/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/linked-list/CMakeLists.txt +++ b/exercises/practice/linked-list/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/list-ops/CMakeLists.txt b/exercises/practice/list-ops/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/list-ops/CMakeLists.txt +++ b/exercises/practice/list-ops/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/luhn/CMakeLists.txt b/exercises/practice/luhn/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/luhn/CMakeLists.txt +++ b/exercises/practice/luhn/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/matching-brackets/CMakeLists.txt b/exercises/practice/matching-brackets/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/matching-brackets/CMakeLists.txt +++ b/exercises/practice/matching-brackets/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/meetup/CMakeLists.txt b/exercises/practice/meetup/CMakeLists.txt index e0b1e6b11..996281fee 100644 --- a/exercises/practice/meetup/CMakeLists.txt +++ b/exercises/practice/meetup/CMakeLists.txt @@ -68,7 +68,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/minesweeper/CMakeLists.txt b/exercises/practice/minesweeper/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/minesweeper/CMakeLists.txt +++ b/exercises/practice/minesweeper/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/nth-prime/CMakeLists.txt b/exercises/practice/nth-prime/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/nth-prime/CMakeLists.txt +++ b/exercises/practice/nth-prime/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/nucleotide-count/CMakeLists.txt b/exercises/practice/nucleotide-count/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/nucleotide-count/CMakeLists.txt +++ b/exercises/practice/nucleotide-count/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/pangram/CMakeLists.txt b/exercises/practice/pangram/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/pangram/CMakeLists.txt +++ b/exercises/practice/pangram/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/parallel-letter-frequency/CMakeLists.txt b/exercises/practice/parallel-letter-frequency/CMakeLists.txt index cf85aec1b..b51e3e65d 100644 --- a/exercises/practice/parallel-letter-frequency/CMakeLists.txt +++ b/exercises/practice/parallel-letter-frequency/CMakeLists.txt @@ -65,7 +65,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/pascals-triangle/CMakeLists.txt b/exercises/practice/pascals-triangle/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/pascals-triangle/CMakeLists.txt +++ b/exercises/practice/pascals-triangle/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/perfect-numbers/CMakeLists.txt b/exercises/practice/perfect-numbers/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/perfect-numbers/CMakeLists.txt +++ b/exercises/practice/perfect-numbers/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/phone-number/CMakeLists.txt b/exercises/practice/phone-number/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/phone-number/CMakeLists.txt +++ b/exercises/practice/phone-number/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/pig-latin/CMakeLists.txt b/exercises/practice/pig-latin/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/pig-latin/CMakeLists.txt +++ b/exercises/practice/pig-latin/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/prime-factors/CMakeLists.txt b/exercises/practice/prime-factors/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/prime-factors/CMakeLists.txt +++ b/exercises/practice/prime-factors/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/protein-translation/CMakeLists.txt b/exercises/practice/protein-translation/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/protein-translation/CMakeLists.txt +++ b/exercises/practice/protein-translation/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/queen-attack/CMakeLists.txt b/exercises/practice/queen-attack/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/queen-attack/CMakeLists.txt +++ b/exercises/practice/queen-attack/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/rail-fence-cipher/CMakeLists.txt b/exercises/practice/rail-fence-cipher/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/rail-fence-cipher/CMakeLists.txt +++ b/exercises/practice/rail-fence-cipher/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/raindrops/CMakeLists.txt b/exercises/practice/raindrops/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/raindrops/CMakeLists.txt +++ b/exercises/practice/raindrops/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/resistor-color-duo/CMakeLists.txt b/exercises/practice/resistor-color-duo/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/resistor-color-duo/CMakeLists.txt +++ b/exercises/practice/resistor-color-duo/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/resistor-color/CMakeLists.txt b/exercises/practice/resistor-color/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/resistor-color/CMakeLists.txt +++ b/exercises/practice/resistor-color/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/reverse-string/CMakeLists.txt b/exercises/practice/reverse-string/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/reverse-string/CMakeLists.txt +++ b/exercises/practice/reverse-string/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/rna-transcription/CMakeLists.txt b/exercises/practice/rna-transcription/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/rna-transcription/CMakeLists.txt +++ b/exercises/practice/rna-transcription/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/robot-name/CMakeLists.txt b/exercises/practice/robot-name/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/robot-name/CMakeLists.txt +++ b/exercises/practice/robot-name/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/robot-simulator/CMakeLists.txt b/exercises/practice/robot-simulator/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/robot-simulator/CMakeLists.txt +++ b/exercises/practice/robot-simulator/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/roman-numerals/CMakeLists.txt b/exercises/practice/roman-numerals/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/roman-numerals/CMakeLists.txt +++ b/exercises/practice/roman-numerals/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/rotational-cipher/CMakeLists.txt b/exercises/practice/rotational-cipher/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/rotational-cipher/CMakeLists.txt +++ b/exercises/practice/rotational-cipher/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/run-length-encoding/CMakeLists.txt b/exercises/practice/run-length-encoding/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/run-length-encoding/CMakeLists.txt +++ b/exercises/practice/run-length-encoding/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/say/CMakeLists.txt b/exercises/practice/say/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/say/CMakeLists.txt +++ b/exercises/practice/say/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/scrabble-score/CMakeLists.txt b/exercises/practice/scrabble-score/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/scrabble-score/CMakeLists.txt +++ b/exercises/practice/scrabble-score/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/secret-handshake/CMakeLists.txt b/exercises/practice/secret-handshake/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/secret-handshake/CMakeLists.txt +++ b/exercises/practice/secret-handshake/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/series/CMakeLists.txt b/exercises/practice/series/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/series/CMakeLists.txt +++ b/exercises/practice/series/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/simple-linked-list/CMakeLists.txt b/exercises/practice/simple-linked-list/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/simple-linked-list/CMakeLists.txt +++ b/exercises/practice/simple-linked-list/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/space-age/CMakeLists.txt b/exercises/practice/space-age/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/space-age/CMakeLists.txt +++ b/exercises/practice/space-age/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/spiral-matrix/CMakeLists.txt b/exercises/practice/spiral-matrix/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/spiral-matrix/CMakeLists.txt +++ b/exercises/practice/spiral-matrix/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/sublist/CMakeLists.txt b/exercises/practice/sublist/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/sublist/CMakeLists.txt +++ b/exercises/practice/sublist/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/sum-of-multiples/CMakeLists.txt b/exercises/practice/sum-of-multiples/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/sum-of-multiples/CMakeLists.txt +++ b/exercises/practice/sum-of-multiples/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/triangle/CMakeLists.txt b/exercises/practice/triangle/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/triangle/CMakeLists.txt +++ b/exercises/practice/triangle/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/trinary/CMakeLists.txt b/exercises/practice/trinary/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/trinary/CMakeLists.txt +++ b/exercises/practice/trinary/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/two-bucket/CMakeLists.txt b/exercises/practice/two-bucket/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/two-bucket/CMakeLists.txt +++ b/exercises/practice/two-bucket/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/two-fer/CMakeLists.txt b/exercises/practice/two-fer/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/two-fer/CMakeLists.txt +++ b/exercises/practice/two-fer/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/word-count/CMakeLists.txt b/exercises/practice/word-count/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/word-count/CMakeLists.txt +++ b/exercises/practice/word-count/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/yacht/CMakeLists.txt b/exercises/practice/yacht/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/yacht/CMakeLists.txt +++ b/exercises/practice/yacht/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build diff --git a/exercises/practice/zebra-puzzle/CMakeLists.txt b/exercises/practice/zebra-puzzle/CMakeLists.txt index 3b0589fd0..6360bc2eb 100644 --- a/exercises/practice/zebra-puzzle/CMakeLists.txt +++ b/exercises/practice/zebra-puzzle/CMakeLists.txt @@ -57,7 +57,8 @@ endif() # Tell MSVC not to warn us about unchecked iterators in debug builds if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX") endif() # Run the tests on every build From 0635733e539e3dbf7f00d87ff278322982d291c4 Mon Sep 17 00:00:00 2001 From: Peter van der Heijden Date: Sat, 2 Nov 2024 21:51:07 +0100 Subject: [PATCH 2/5] Call darts::score() with floats instead of doubles to get rid of C4305. --- exercises/practice/darts/darts_test.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/exercises/practice/darts/darts_test.cpp b/exercises/practice/darts/darts_test.cpp index 83ffa1be2..ccba524b9 100644 --- a/exercises/practice/darts/darts_test.cpp +++ b/exercises/practice/darts/darts_test.cpp @@ -34,41 +34,41 @@ TEST_CASE("exactly_on_centre") TEST_CASE("near_the_centre") { - REQUIRE(darts::score(-0.1,-0.1) == 10); + REQUIRE(darts::score(-0.1f,-0.1f) == 10); } TEST_CASE("just_within_the_inner_circle") { - REQUIRE(darts::score(0.7,0.7) == 10); + REQUIRE(darts::score(0.7f,0.7f) == 10); } TEST_CASE("just_outside_the_inner_circle") { - REQUIRE(darts::score(0.8,-0.8) == 5); + REQUIRE(darts::score(0.8f,-0.8f) == 5); } TEST_CASE("just_within_the_middle_circle") { - REQUIRE(darts::score(-3.5,3.5) == 5); + REQUIRE(darts::score(-3.5f,3.5f) == 5); } TEST_CASE("just_outside_the_middle_circle") { - REQUIRE(darts::score(-3.6,-3.6) == 1); + REQUIRE(darts::score(-3.6f,-3.6f) == 1); } TEST_CASE("just_within_the_outer_circle") { - REQUIRE(darts::score(-7.0,7.0) == 1); + REQUIRE(darts::score(-7.0f,7.0f) == 1); } TEST_CASE("just_outside_the_outer_circle") { - REQUIRE(darts::score(7.1,-7.1) == 0); + REQUIRE(darts::score(7.1f,-7.1f) == 0); } TEST_CASE("asymmetric_position_between_the_inner_and_middle_circles") { - REQUIRE(darts::score(0.5,-4) == 5); + REQUIRE(darts::score(0.5f,-4) == 5); } #endif From 3efcb6e1b7649b4a92d8cf8fc2b95cdca9d45ddf Mon Sep 17 00:00:00 2001 From: Peter van der Heijden Date: Sat, 2 Nov 2024 22:29:12 +0100 Subject: [PATCH 3/5] Suppress C4244 and C4267 because lots of code triggers them and GCC and CLang are fine with those conversions. --- exercises/concept/doctor-data/CMakeLists.txt | 4 +++- exercises/concept/election-day/CMakeLists.txt | 4 +++- exercises/concept/ellens-alien-game/CMakeLists.txt | 4 +++- exercises/concept/freelancer-rates/CMakeLists.txt | 4 +++- exercises/concept/interest-is-interesting/CMakeLists.txt | 4 +++- exercises/concept/lasagna-master/CMakeLists.txt | 4 +++- exercises/concept/lasagna/CMakeLists.txt | 4 +++- exercises/concept/last-will/CMakeLists.txt | 4 +++- exercises/concept/log-levels/CMakeLists.txt | 4 +++- exercises/concept/making-the-grade/CMakeLists.txt | 4 +++- exercises/concept/pacman-rules/CMakeLists.txt | 4 +++- exercises/concept/troll-the-trolls/CMakeLists.txt | 4 +++- exercises/concept/vehicle-purchase/CMakeLists.txt | 4 +++- exercises/practice/acronym/CMakeLists.txt | 4 +++- exercises/practice/all-your-base/CMakeLists.txt | 4 +++- exercises/practice/allergies/CMakeLists.txt | 4 +++- exercises/practice/anagram/CMakeLists.txt | 4 +++- exercises/practice/armstrong-numbers/CMakeLists.txt | 4 +++- exercises/practice/atbash-cipher/CMakeLists.txt | 4 +++- exercises/practice/bank-account/CMakeLists.txt | 4 +++- exercises/practice/beer-song/CMakeLists.txt | 4 +++- exercises/practice/binary-search-tree/CMakeLists.txt | 4 +++- exercises/practice/binary-search/CMakeLists.txt | 4 +++- exercises/practice/binary/CMakeLists.txt | 4 +++- exercises/practice/bob/CMakeLists.txt | 4 +++- exercises/practice/circular-buffer/CMakeLists.txt | 4 +++- exercises/practice/clock/CMakeLists.txt | 4 +++- exercises/practice/collatz-conjecture/CMakeLists.txt | 4 +++- exercises/practice/complex-numbers/CMakeLists.txt | 4 +++- exercises/practice/crypto-square/CMakeLists.txt | 4 +++- exercises/practice/darts/CMakeLists.txt | 4 +++- exercises/practice/diamond/CMakeLists.txt | 4 +++- exercises/practice/difference-of-squares/CMakeLists.txt | 4 +++- exercises/practice/dnd-character/CMakeLists.txt | 4 +++- exercises/practice/eliuds-eggs/CMakeLists.txt | 4 +++- exercises/practice/etl/CMakeLists.txt | 4 +++- exercises/practice/food-chain/CMakeLists.txt | 4 +++- exercises/practice/gigasecond/CMakeLists.txt | 4 +++- exercises/practice/grade-school/CMakeLists.txt | 4 +++- exercises/practice/grains/CMakeLists.txt | 4 +++- exercises/practice/hamming/CMakeLists.txt | 4 +++- exercises/practice/hello-world/CMakeLists.txt | 4 +++- exercises/practice/hexadecimal/CMakeLists.txt | 4 +++- exercises/practice/high-scores/CMakeLists.txt | 4 +++- exercises/practice/isbn-verifier/CMakeLists.txt | 4 +++- exercises/practice/isogram/CMakeLists.txt | 4 +++- exercises/practice/kindergarten-garden/CMakeLists.txt | 4 +++- exercises/practice/knapsack/CMakeLists.txt | 4 +++- exercises/practice/largest-series-product/CMakeLists.txt | 4 +++- exercises/practice/leap/CMakeLists.txt | 4 +++- exercises/practice/linked-list/CMakeLists.txt | 4 +++- exercises/practice/list-ops/CMakeLists.txt | 4 +++- exercises/practice/luhn/CMakeLists.txt | 4 +++- exercises/practice/matching-brackets/CMakeLists.txt | 4 +++- exercises/practice/meetup/CMakeLists.txt | 4 +++- exercises/practice/minesweeper/CMakeLists.txt | 4 +++- exercises/practice/nth-prime/CMakeLists.txt | 4 +++- exercises/practice/nucleotide-count/CMakeLists.txt | 4 +++- exercises/practice/pangram/CMakeLists.txt | 4 +++- exercises/practice/parallel-letter-frequency/CMakeLists.txt | 4 +++- exercises/practice/pascals-triangle/CMakeLists.txt | 4 +++- exercises/practice/perfect-numbers/CMakeLists.txt | 4 +++- exercises/practice/phone-number/CMakeLists.txt | 4 +++- exercises/practice/pig-latin/CMakeLists.txt | 4 +++- exercises/practice/prime-factors/CMakeLists.txt | 4 +++- exercises/practice/protein-translation/CMakeLists.txt | 4 +++- exercises/practice/queen-attack/CMakeLists.txt | 4 +++- exercises/practice/rail-fence-cipher/CMakeLists.txt | 4 +++- exercises/practice/raindrops/CMakeLists.txt | 4 +++- exercises/practice/resistor-color-duo/CMakeLists.txt | 4 +++- exercises/practice/resistor-color/CMakeLists.txt | 4 +++- exercises/practice/reverse-string/CMakeLists.txt | 4 +++- exercises/practice/rna-transcription/CMakeLists.txt | 4 +++- exercises/practice/robot-name/CMakeLists.txt | 4 +++- exercises/practice/robot-simulator/CMakeLists.txt | 4 +++- exercises/practice/roman-numerals/CMakeLists.txt | 4 +++- exercises/practice/rotational-cipher/CMakeLists.txt | 4 +++- exercises/practice/run-length-encoding/CMakeLists.txt | 4 +++- exercises/practice/say/CMakeLists.txt | 4 +++- exercises/practice/scrabble-score/CMakeLists.txt | 4 +++- exercises/practice/secret-handshake/CMakeLists.txt | 4 +++- exercises/practice/series/CMakeLists.txt | 4 +++- exercises/practice/sieve/CMakeLists.txt | 6 ++++-- exercises/practice/simple-linked-list/CMakeLists.txt | 4 +++- exercises/practice/space-age/CMakeLists.txt | 4 +++- exercises/practice/spiral-matrix/CMakeLists.txt | 4 +++- exercises/practice/sublist/CMakeLists.txt | 4 +++- exercises/practice/sum-of-multiples/CMakeLists.txt | 4 +++- exercises/practice/triangle/CMakeLists.txt | 4 +++- exercises/practice/trinary/CMakeLists.txt | 4 +++- exercises/practice/two-bucket/CMakeLists.txt | 4 +++- exercises/practice/two-fer/CMakeLists.txt | 4 +++- exercises/practice/word-count/CMakeLists.txt | 4 +++- exercises/practice/yacht/CMakeLists.txt | 4 +++- exercises/practice/zebra-puzzle/CMakeLists.txt | 4 +++- 95 files changed, 286 insertions(+), 96 deletions(-) diff --git a/exercises/concept/doctor-data/CMakeLists.txt b/exercises/concept/doctor-data/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/concept/doctor-data/CMakeLists.txt +++ b/exercises/concept/doctor-data/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/election-day/CMakeLists.txt b/exercises/concept/election-day/CMakeLists.txt index ae63c361e..62f1b2f15 100644 --- a/exercises/concept/election-day/CMakeLists.txt +++ b/exercises/concept/election-day/CMakeLists.txt @@ -58,10 +58,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/ellens-alien-game/CMakeLists.txt b/exercises/concept/ellens-alien-game/CMakeLists.txt index 416814875..2d37a4349 100644 --- a/exercises/concept/ellens-alien-game/CMakeLists.txt +++ b/exercises/concept/ellens-alien-game/CMakeLists.txt @@ -57,10 +57,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/freelancer-rates/CMakeLists.txt b/exercises/concept/freelancer-rates/CMakeLists.txt index 416814875..2d37a4349 100644 --- a/exercises/concept/freelancer-rates/CMakeLists.txt +++ b/exercises/concept/freelancer-rates/CMakeLists.txt @@ -57,10 +57,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/interest-is-interesting/CMakeLists.txt b/exercises/concept/interest-is-interesting/CMakeLists.txt index 416814875..2d37a4349 100644 --- a/exercises/concept/interest-is-interesting/CMakeLists.txt +++ b/exercises/concept/interest-is-interesting/CMakeLists.txt @@ -57,10 +57,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/lasagna-master/CMakeLists.txt b/exercises/concept/lasagna-master/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/concept/lasagna-master/CMakeLists.txt +++ b/exercises/concept/lasagna-master/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/lasagna/CMakeLists.txt b/exercises/concept/lasagna/CMakeLists.txt index 416814875..2d37a4349 100644 --- a/exercises/concept/lasagna/CMakeLists.txt +++ b/exercises/concept/lasagna/CMakeLists.txt @@ -57,10 +57,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/last-will/CMakeLists.txt b/exercises/concept/last-will/CMakeLists.txt index 416814875..2d37a4349 100644 --- a/exercises/concept/last-will/CMakeLists.txt +++ b/exercises/concept/last-will/CMakeLists.txt @@ -57,10 +57,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/log-levels/CMakeLists.txt b/exercises/concept/log-levels/CMakeLists.txt index 356dcf4f4..59b56d3c6 100644 --- a/exercises/concept/log-levels/CMakeLists.txt +++ b/exercises/concept/log-levels/CMakeLists.txt @@ -57,10 +57,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/making-the-grade/CMakeLists.txt b/exercises/concept/making-the-grade/CMakeLists.txt index ae63c361e..62f1b2f15 100644 --- a/exercises/concept/making-the-grade/CMakeLists.txt +++ b/exercises/concept/making-the-grade/CMakeLists.txt @@ -58,10 +58,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/pacman-rules/CMakeLists.txt b/exercises/concept/pacman-rules/CMakeLists.txt index 416814875..2d37a4349 100644 --- a/exercises/concept/pacman-rules/CMakeLists.txt +++ b/exercises/concept/pacman-rules/CMakeLists.txt @@ -57,10 +57,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/troll-the-trolls/CMakeLists.txt b/exercises/concept/troll-the-trolls/CMakeLists.txt index 416814875..2d37a4349 100644 --- a/exercises/concept/troll-the-trolls/CMakeLists.txt +++ b/exercises/concept/troll-the-trolls/CMakeLists.txt @@ -57,10 +57,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/concept/vehicle-purchase/CMakeLists.txt b/exercises/concept/vehicle-purchase/CMakeLists.txt index 47259b793..0d6061cc2 100644 --- a/exercises/concept/vehicle-purchase/CMakeLists.txt +++ b/exercises/concept/vehicle-purchase/CMakeLists.txt @@ -60,10 +60,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/acronym/CMakeLists.txt b/exercises/practice/acronym/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/acronym/CMakeLists.txt +++ b/exercises/practice/acronym/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/all-your-base/CMakeLists.txt b/exercises/practice/all-your-base/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/all-your-base/CMakeLists.txt +++ b/exercises/practice/all-your-base/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/allergies/CMakeLists.txt b/exercises/practice/allergies/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/allergies/CMakeLists.txt +++ b/exercises/practice/allergies/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/anagram/CMakeLists.txt b/exercises/practice/anagram/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/anagram/CMakeLists.txt +++ b/exercises/practice/anagram/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/armstrong-numbers/CMakeLists.txt b/exercises/practice/armstrong-numbers/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/armstrong-numbers/CMakeLists.txt +++ b/exercises/practice/armstrong-numbers/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/atbash-cipher/CMakeLists.txt b/exercises/practice/atbash-cipher/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/atbash-cipher/CMakeLists.txt +++ b/exercises/practice/atbash-cipher/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/bank-account/CMakeLists.txt b/exercises/practice/bank-account/CMakeLists.txt index a60245932..4032b5eee 100644 --- a/exercises/practice/bank-account/CMakeLists.txt +++ b/exercises/practice/bank-account/CMakeLists.txt @@ -59,10 +59,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/beer-song/CMakeLists.txt b/exercises/practice/beer-song/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/beer-song/CMakeLists.txt +++ b/exercises/practice/beer-song/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/binary-search-tree/CMakeLists.txt b/exercises/practice/binary-search-tree/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/binary-search-tree/CMakeLists.txt +++ b/exercises/practice/binary-search-tree/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/binary-search/CMakeLists.txt b/exercises/practice/binary-search/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/binary-search/CMakeLists.txt +++ b/exercises/practice/binary-search/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/binary/CMakeLists.txt b/exercises/practice/binary/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/binary/CMakeLists.txt +++ b/exercises/practice/binary/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/bob/CMakeLists.txt b/exercises/practice/bob/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/bob/CMakeLists.txt +++ b/exercises/practice/bob/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/circular-buffer/CMakeLists.txt b/exercises/practice/circular-buffer/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/circular-buffer/CMakeLists.txt +++ b/exercises/practice/circular-buffer/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/clock/CMakeLists.txt b/exercises/practice/clock/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/clock/CMakeLists.txt +++ b/exercises/practice/clock/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/collatz-conjecture/CMakeLists.txt b/exercises/practice/collatz-conjecture/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/collatz-conjecture/CMakeLists.txt +++ b/exercises/practice/collatz-conjecture/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/complex-numbers/CMakeLists.txt b/exercises/practice/complex-numbers/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/complex-numbers/CMakeLists.txt +++ b/exercises/practice/complex-numbers/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/crypto-square/CMakeLists.txt b/exercises/practice/crypto-square/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/crypto-square/CMakeLists.txt +++ b/exercises/practice/crypto-square/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/darts/CMakeLists.txt b/exercises/practice/darts/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/darts/CMakeLists.txt +++ b/exercises/practice/darts/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/diamond/CMakeLists.txt b/exercises/practice/diamond/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/diamond/CMakeLists.txt +++ b/exercises/practice/diamond/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/difference-of-squares/CMakeLists.txt b/exercises/practice/difference-of-squares/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/difference-of-squares/CMakeLists.txt +++ b/exercises/practice/difference-of-squares/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/dnd-character/CMakeLists.txt b/exercises/practice/dnd-character/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/dnd-character/CMakeLists.txt +++ b/exercises/practice/dnd-character/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/eliuds-eggs/CMakeLists.txt b/exercises/practice/eliuds-eggs/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/eliuds-eggs/CMakeLists.txt +++ b/exercises/practice/eliuds-eggs/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/etl/CMakeLists.txt b/exercises/practice/etl/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/etl/CMakeLists.txt +++ b/exercises/practice/etl/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/food-chain/CMakeLists.txt b/exercises/practice/food-chain/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/food-chain/CMakeLists.txt +++ b/exercises/practice/food-chain/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/gigasecond/CMakeLists.txt b/exercises/practice/gigasecond/CMakeLists.txt index 996281fee..646162478 100644 --- a/exercises/practice/gigasecond/CMakeLists.txt +++ b/exercises/practice/gigasecond/CMakeLists.txt @@ -66,10 +66,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/grade-school/CMakeLists.txt b/exercises/practice/grade-school/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/grade-school/CMakeLists.txt +++ b/exercises/practice/grade-school/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/grains/CMakeLists.txt b/exercises/practice/grains/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/grains/CMakeLists.txt +++ b/exercises/practice/grains/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/hamming/CMakeLists.txt b/exercises/practice/hamming/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/hamming/CMakeLists.txt +++ b/exercises/practice/hamming/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/hello-world/CMakeLists.txt b/exercises/practice/hello-world/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/hello-world/CMakeLists.txt +++ b/exercises/practice/hello-world/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/hexadecimal/CMakeLists.txt b/exercises/practice/hexadecimal/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/hexadecimal/CMakeLists.txt +++ b/exercises/practice/hexadecimal/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/high-scores/CMakeLists.txt b/exercises/practice/high-scores/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/high-scores/CMakeLists.txt +++ b/exercises/practice/high-scores/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/isbn-verifier/CMakeLists.txt b/exercises/practice/isbn-verifier/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/isbn-verifier/CMakeLists.txt +++ b/exercises/practice/isbn-verifier/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/isogram/CMakeLists.txt b/exercises/practice/isogram/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/isogram/CMakeLists.txt +++ b/exercises/practice/isogram/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/kindergarten-garden/CMakeLists.txt b/exercises/practice/kindergarten-garden/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/kindergarten-garden/CMakeLists.txt +++ b/exercises/practice/kindergarten-garden/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/knapsack/CMakeLists.txt b/exercises/practice/knapsack/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/knapsack/CMakeLists.txt +++ b/exercises/practice/knapsack/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/largest-series-product/CMakeLists.txt b/exercises/practice/largest-series-product/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/largest-series-product/CMakeLists.txt +++ b/exercises/practice/largest-series-product/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/leap/CMakeLists.txt b/exercises/practice/leap/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/leap/CMakeLists.txt +++ b/exercises/practice/leap/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/linked-list/CMakeLists.txt b/exercises/practice/linked-list/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/linked-list/CMakeLists.txt +++ b/exercises/practice/linked-list/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/list-ops/CMakeLists.txt b/exercises/practice/list-ops/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/list-ops/CMakeLists.txt +++ b/exercises/practice/list-ops/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/luhn/CMakeLists.txt b/exercises/practice/luhn/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/luhn/CMakeLists.txt +++ b/exercises/practice/luhn/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/matching-brackets/CMakeLists.txt b/exercises/practice/matching-brackets/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/matching-brackets/CMakeLists.txt +++ b/exercises/practice/matching-brackets/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/meetup/CMakeLists.txt b/exercises/practice/meetup/CMakeLists.txt index 996281fee..646162478 100644 --- a/exercises/practice/meetup/CMakeLists.txt +++ b/exercises/practice/meetup/CMakeLists.txt @@ -66,10 +66,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/minesweeper/CMakeLists.txt b/exercises/practice/minesweeper/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/minesweeper/CMakeLists.txt +++ b/exercises/practice/minesweeper/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/nth-prime/CMakeLists.txt b/exercises/practice/nth-prime/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/nth-prime/CMakeLists.txt +++ b/exercises/practice/nth-prime/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/nucleotide-count/CMakeLists.txt b/exercises/practice/nucleotide-count/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/nucleotide-count/CMakeLists.txt +++ b/exercises/practice/nucleotide-count/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/pangram/CMakeLists.txt b/exercises/practice/pangram/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/pangram/CMakeLists.txt +++ b/exercises/practice/pangram/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/parallel-letter-frequency/CMakeLists.txt b/exercises/practice/parallel-letter-frequency/CMakeLists.txt index b51e3e65d..ef58ca2f2 100644 --- a/exercises/practice/parallel-letter-frequency/CMakeLists.txt +++ b/exercises/practice/parallel-letter-frequency/CMakeLists.txt @@ -63,10 +63,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/pascals-triangle/CMakeLists.txt b/exercises/practice/pascals-triangle/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/pascals-triangle/CMakeLists.txt +++ b/exercises/practice/pascals-triangle/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/perfect-numbers/CMakeLists.txt b/exercises/practice/perfect-numbers/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/perfect-numbers/CMakeLists.txt +++ b/exercises/practice/perfect-numbers/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/phone-number/CMakeLists.txt b/exercises/practice/phone-number/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/phone-number/CMakeLists.txt +++ b/exercises/practice/phone-number/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/pig-latin/CMakeLists.txt b/exercises/practice/pig-latin/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/pig-latin/CMakeLists.txt +++ b/exercises/practice/pig-latin/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/prime-factors/CMakeLists.txt b/exercises/practice/prime-factors/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/prime-factors/CMakeLists.txt +++ b/exercises/practice/prime-factors/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/protein-translation/CMakeLists.txt b/exercises/practice/protein-translation/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/protein-translation/CMakeLists.txt +++ b/exercises/practice/protein-translation/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/queen-attack/CMakeLists.txt b/exercises/practice/queen-attack/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/queen-attack/CMakeLists.txt +++ b/exercises/practice/queen-attack/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/rail-fence-cipher/CMakeLists.txt b/exercises/practice/rail-fence-cipher/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/rail-fence-cipher/CMakeLists.txt +++ b/exercises/practice/rail-fence-cipher/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/raindrops/CMakeLists.txt b/exercises/practice/raindrops/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/raindrops/CMakeLists.txt +++ b/exercises/practice/raindrops/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/resistor-color-duo/CMakeLists.txt b/exercises/practice/resistor-color-duo/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/resistor-color-duo/CMakeLists.txt +++ b/exercises/practice/resistor-color-duo/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/resistor-color/CMakeLists.txt b/exercises/practice/resistor-color/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/resistor-color/CMakeLists.txt +++ b/exercises/practice/resistor-color/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/reverse-string/CMakeLists.txt b/exercises/practice/reverse-string/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/reverse-string/CMakeLists.txt +++ b/exercises/practice/reverse-string/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/rna-transcription/CMakeLists.txt b/exercises/practice/rna-transcription/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/rna-transcription/CMakeLists.txt +++ b/exercises/practice/rna-transcription/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/robot-name/CMakeLists.txt b/exercises/practice/robot-name/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/robot-name/CMakeLists.txt +++ b/exercises/practice/robot-name/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/robot-simulator/CMakeLists.txt b/exercises/practice/robot-simulator/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/robot-simulator/CMakeLists.txt +++ b/exercises/practice/robot-simulator/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/roman-numerals/CMakeLists.txt b/exercises/practice/roman-numerals/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/roman-numerals/CMakeLists.txt +++ b/exercises/practice/roman-numerals/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/rotational-cipher/CMakeLists.txt b/exercises/practice/rotational-cipher/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/rotational-cipher/CMakeLists.txt +++ b/exercises/practice/rotational-cipher/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/run-length-encoding/CMakeLists.txt b/exercises/practice/run-length-encoding/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/run-length-encoding/CMakeLists.txt +++ b/exercises/practice/run-length-encoding/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/say/CMakeLists.txt b/exercises/practice/say/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/say/CMakeLists.txt +++ b/exercises/practice/say/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/scrabble-score/CMakeLists.txt b/exercises/practice/scrabble-score/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/scrabble-score/CMakeLists.txt +++ b/exercises/practice/scrabble-score/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/secret-handshake/CMakeLists.txt b/exercises/practice/secret-handshake/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/secret-handshake/CMakeLists.txt +++ b/exercises/practice/secret-handshake/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/series/CMakeLists.txt b/exercises/practice/series/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/series/CMakeLists.txt +++ b/exercises/practice/series/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/sieve/CMakeLists.txt b/exercises/practice/sieve/CMakeLists.txt index 3b0589fd0..01824c43e 100644 --- a/exercises/practice/sieve/CMakeLists.txt +++ b/exercises/practice/sieve/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES - COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS) -endif() + COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS + COMPILE_FLAGS "/WX /W44244 /W44267") # Run the tests on every build add_custom_target(test_${exercise} ALL DEPENDS ${exercise} COMMAND ${exercise}) diff --git a/exercises/practice/simple-linked-list/CMakeLists.txt b/exercises/practice/simple-linked-list/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/simple-linked-list/CMakeLists.txt +++ b/exercises/practice/simple-linked-list/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/space-age/CMakeLists.txt b/exercises/practice/space-age/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/space-age/CMakeLists.txt +++ b/exercises/practice/space-age/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/spiral-matrix/CMakeLists.txt b/exercises/practice/spiral-matrix/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/spiral-matrix/CMakeLists.txt +++ b/exercises/practice/spiral-matrix/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/sublist/CMakeLists.txt b/exercises/practice/sublist/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/sublist/CMakeLists.txt +++ b/exercises/practice/sublist/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/sum-of-multiples/CMakeLists.txt b/exercises/practice/sum-of-multiples/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/sum-of-multiples/CMakeLists.txt +++ b/exercises/practice/sum-of-multiples/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/triangle/CMakeLists.txt b/exercises/practice/triangle/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/triangle/CMakeLists.txt +++ b/exercises/practice/triangle/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/trinary/CMakeLists.txt b/exercises/practice/trinary/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/trinary/CMakeLists.txt +++ b/exercises/practice/trinary/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/two-bucket/CMakeLists.txt b/exercises/practice/two-bucket/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/two-bucket/CMakeLists.txt +++ b/exercises/practice/two-bucket/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/two-fer/CMakeLists.txt b/exercises/practice/two-fer/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/two-fer/CMakeLists.txt +++ b/exercises/practice/two-fer/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/word-count/CMakeLists.txt b/exercises/practice/word-count/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/word-count/CMakeLists.txt +++ b/exercises/practice/word-count/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/yacht/CMakeLists.txt b/exercises/practice/yacht/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/yacht/CMakeLists.txt +++ b/exercises/practice/yacht/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build diff --git a/exercises/practice/zebra-puzzle/CMakeLists.txt b/exercises/practice/zebra-puzzle/CMakeLists.txt index 6360bc2eb..26408dab4 100644 --- a/exercises/practice/zebra-puzzle/CMakeLists.txt +++ b/exercises/practice/zebra-puzzle/CMakeLists.txt @@ -55,10 +55,12 @@ if(${EXERCISM_RUN_ALL_TESTS}) endif() # Tell MSVC not to warn us about unchecked iterators in debug builds +# Treat warnings as errors +# Treat type conversion warnings C4244 and C4267 as level 4 warnings, i.e. ignore them in level 3 if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX") + COMPILE_FLAGS "/WX /W44244 /W44267") endif() # Run the tests on every build From 15fe219c12a6e4c14a012ccae89b7e24fb3b9a21 Mon Sep 17 00:00:00 2001 From: Peter van der Heijden Date: Sun, 3 Nov 2024 08:54:19 +0100 Subject: [PATCH 4/5] Add missing endif to CMakeLists.txt for sieve. --- exercises/practice/sieve/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/practice/sieve/CMakeLists.txt b/exercises/practice/sieve/CMakeLists.txt index 01824c43e..26408dab4 100644 --- a/exercises/practice/sieve/CMakeLists.txt +++ b/exercises/practice/sieve/CMakeLists.txt @@ -61,6 +61,7 @@ if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS COMPILE_FLAGS "/WX /W44244 /W44267") +endif() # Run the tests on every build add_custom_target(test_${exercise} ALL DEPENDS ${exercise} COMMAND ${exercise}) From e6d3050761a6b7f6a7b13eeebb5b34fca2bd6c00 Mon Sep 17 00:00:00 2001 From: Peter van der Heijden Date: Sun, 3 Nov 2024 09:21:35 +0100 Subject: [PATCH 5/5] To disable a warning, use /w and not /W. --- exercises/concept/doctor-data/CMakeLists.txt | 2 +- exercises/concept/election-day/CMakeLists.txt | 2 +- exercises/concept/ellens-alien-game/CMakeLists.txt | 2 +- exercises/concept/freelancer-rates/CMakeLists.txt | 2 +- exercises/concept/interest-is-interesting/CMakeLists.txt | 2 +- exercises/concept/lasagna-master/CMakeLists.txt | 2 +- exercises/concept/lasagna/CMakeLists.txt | 2 +- exercises/concept/last-will/CMakeLists.txt | 2 +- exercises/concept/log-levels/CMakeLists.txt | 2 +- exercises/concept/making-the-grade/CMakeLists.txt | 2 +- exercises/concept/pacman-rules/CMakeLists.txt | 2 +- exercises/concept/troll-the-trolls/CMakeLists.txt | 2 +- exercises/concept/vehicle-purchase/CMakeLists.txt | 2 +- exercises/practice/acronym/CMakeLists.txt | 2 +- exercises/practice/all-your-base/CMakeLists.txt | 2 +- exercises/practice/allergies/CMakeLists.txt | 2 +- exercises/practice/anagram/CMakeLists.txt | 2 +- exercises/practice/armstrong-numbers/CMakeLists.txt | 2 +- exercises/practice/atbash-cipher/CMakeLists.txt | 2 +- exercises/practice/bank-account/CMakeLists.txt | 2 +- exercises/practice/beer-song/CMakeLists.txt | 2 +- exercises/practice/binary-search-tree/CMakeLists.txt | 2 +- exercises/practice/binary-search/CMakeLists.txt | 2 +- exercises/practice/binary/CMakeLists.txt | 2 +- exercises/practice/bob/CMakeLists.txt | 2 +- exercises/practice/circular-buffer/CMakeLists.txt | 2 +- exercises/practice/clock/CMakeLists.txt | 2 +- exercises/practice/collatz-conjecture/CMakeLists.txt | 2 +- exercises/practice/complex-numbers/CMakeLists.txt | 2 +- exercises/practice/crypto-square/CMakeLists.txt | 2 +- exercises/practice/darts/CMakeLists.txt | 2 +- exercises/practice/diamond/CMakeLists.txt | 2 +- exercises/practice/difference-of-squares/CMakeLists.txt | 2 +- exercises/practice/dnd-character/CMakeLists.txt | 2 +- exercises/practice/eliuds-eggs/CMakeLists.txt | 2 +- exercises/practice/etl/CMakeLists.txt | 2 +- exercises/practice/food-chain/CMakeLists.txt | 2 +- exercises/practice/gigasecond/CMakeLists.txt | 2 +- exercises/practice/grade-school/CMakeLists.txt | 2 +- exercises/practice/grains/CMakeLists.txt | 2 +- exercises/practice/hamming/CMakeLists.txt | 2 +- exercises/practice/hello-world/CMakeLists.txt | 2 +- exercises/practice/hexadecimal/CMakeLists.txt | 2 +- exercises/practice/high-scores/CMakeLists.txt | 2 +- exercises/practice/isbn-verifier/CMakeLists.txt | 2 +- exercises/practice/isogram/CMakeLists.txt | 2 +- exercises/practice/kindergarten-garden/CMakeLists.txt | 2 +- exercises/practice/knapsack/CMakeLists.txt | 2 +- exercises/practice/largest-series-product/CMakeLists.txt | 2 +- exercises/practice/leap/CMakeLists.txt | 2 +- exercises/practice/linked-list/CMakeLists.txt | 2 +- exercises/practice/list-ops/CMakeLists.txt | 2 +- exercises/practice/luhn/CMakeLists.txt | 2 +- exercises/practice/matching-brackets/CMakeLists.txt | 2 +- exercises/practice/meetup/CMakeLists.txt | 2 +- exercises/practice/minesweeper/CMakeLists.txt | 2 +- exercises/practice/nth-prime/CMakeLists.txt | 2 +- exercises/practice/nucleotide-count/CMakeLists.txt | 2 +- exercises/practice/pangram/CMakeLists.txt | 2 +- exercises/practice/parallel-letter-frequency/CMakeLists.txt | 2 +- exercises/practice/pascals-triangle/CMakeLists.txt | 2 +- exercises/practice/perfect-numbers/CMakeLists.txt | 2 +- exercises/practice/phone-number/CMakeLists.txt | 2 +- exercises/practice/pig-latin/CMakeLists.txt | 2 +- exercises/practice/prime-factors/CMakeLists.txt | 2 +- exercises/practice/protein-translation/CMakeLists.txt | 2 +- exercises/practice/queen-attack/CMakeLists.txt | 2 +- exercises/practice/rail-fence-cipher/CMakeLists.txt | 2 +- exercises/practice/raindrops/CMakeLists.txt | 2 +- exercises/practice/resistor-color-duo/CMakeLists.txt | 2 +- exercises/practice/resistor-color/CMakeLists.txt | 2 +- exercises/practice/reverse-string/CMakeLists.txt | 2 +- exercises/practice/rna-transcription/CMakeLists.txt | 2 +- exercises/practice/robot-name/CMakeLists.txt | 2 +- exercises/practice/robot-simulator/CMakeLists.txt | 2 +- exercises/practice/roman-numerals/CMakeLists.txt | 2 +- exercises/practice/rotational-cipher/CMakeLists.txt | 2 +- exercises/practice/run-length-encoding/CMakeLists.txt | 2 +- exercises/practice/say/CMakeLists.txt | 2 +- exercises/practice/scrabble-score/CMakeLists.txt | 2 +- exercises/practice/secret-handshake/CMakeLists.txt | 2 +- exercises/practice/series/CMakeLists.txt | 2 +- exercises/practice/sieve/CMakeLists.txt | 2 +- exercises/practice/simple-linked-list/CMakeLists.txt | 2 +- exercises/practice/space-age/CMakeLists.txt | 2 +- exercises/practice/spiral-matrix/CMakeLists.txt | 2 +- exercises/practice/sublist/CMakeLists.txt | 2 +- exercises/practice/sum-of-multiples/CMakeLists.txt | 2 +- exercises/practice/triangle/CMakeLists.txt | 2 +- exercises/practice/trinary/CMakeLists.txt | 2 +- exercises/practice/two-bucket/CMakeLists.txt | 2 +- exercises/practice/two-fer/CMakeLists.txt | 2 +- exercises/practice/word-count/CMakeLists.txt | 2 +- exercises/practice/yacht/CMakeLists.txt | 2 +- exercises/practice/zebra-puzzle/CMakeLists.txt | 2 +- 95 files changed, 95 insertions(+), 95 deletions(-) diff --git a/exercises/concept/doctor-data/CMakeLists.txt b/exercises/concept/doctor-data/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/concept/doctor-data/CMakeLists.txt +++ b/exercises/concept/doctor-data/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/election-day/CMakeLists.txt b/exercises/concept/election-day/CMakeLists.txt index 62f1b2f15..ba6b66368 100644 --- a/exercises/concept/election-day/CMakeLists.txt +++ b/exercises/concept/election-day/CMakeLists.txt @@ -63,7 +63,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/ellens-alien-game/CMakeLists.txt b/exercises/concept/ellens-alien-game/CMakeLists.txt index 2d37a4349..8e21222a2 100644 --- a/exercises/concept/ellens-alien-game/CMakeLists.txt +++ b/exercises/concept/ellens-alien-game/CMakeLists.txt @@ -62,7 +62,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/freelancer-rates/CMakeLists.txt b/exercises/concept/freelancer-rates/CMakeLists.txt index 2d37a4349..8e21222a2 100644 --- a/exercises/concept/freelancer-rates/CMakeLists.txt +++ b/exercises/concept/freelancer-rates/CMakeLists.txt @@ -62,7 +62,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/interest-is-interesting/CMakeLists.txt b/exercises/concept/interest-is-interesting/CMakeLists.txt index 2d37a4349..8e21222a2 100644 --- a/exercises/concept/interest-is-interesting/CMakeLists.txt +++ b/exercises/concept/interest-is-interesting/CMakeLists.txt @@ -62,7 +62,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/lasagna-master/CMakeLists.txt b/exercises/concept/lasagna-master/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/concept/lasagna-master/CMakeLists.txt +++ b/exercises/concept/lasagna-master/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/lasagna/CMakeLists.txt b/exercises/concept/lasagna/CMakeLists.txt index 2d37a4349..8e21222a2 100644 --- a/exercises/concept/lasagna/CMakeLists.txt +++ b/exercises/concept/lasagna/CMakeLists.txt @@ -62,7 +62,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/last-will/CMakeLists.txt b/exercises/concept/last-will/CMakeLists.txt index 2d37a4349..8e21222a2 100644 --- a/exercises/concept/last-will/CMakeLists.txt +++ b/exercises/concept/last-will/CMakeLists.txt @@ -62,7 +62,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/log-levels/CMakeLists.txt b/exercises/concept/log-levels/CMakeLists.txt index 59b56d3c6..44ef334b3 100644 --- a/exercises/concept/log-levels/CMakeLists.txt +++ b/exercises/concept/log-levels/CMakeLists.txt @@ -62,7 +62,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/making-the-grade/CMakeLists.txt b/exercises/concept/making-the-grade/CMakeLists.txt index 62f1b2f15..ba6b66368 100644 --- a/exercises/concept/making-the-grade/CMakeLists.txt +++ b/exercises/concept/making-the-grade/CMakeLists.txt @@ -63,7 +63,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/pacman-rules/CMakeLists.txt b/exercises/concept/pacman-rules/CMakeLists.txt index 2d37a4349..8e21222a2 100644 --- a/exercises/concept/pacman-rules/CMakeLists.txt +++ b/exercises/concept/pacman-rules/CMakeLists.txt @@ -62,7 +62,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/troll-the-trolls/CMakeLists.txt b/exercises/concept/troll-the-trolls/CMakeLists.txt index 2d37a4349..8e21222a2 100644 --- a/exercises/concept/troll-the-trolls/CMakeLists.txt +++ b/exercises/concept/troll-the-trolls/CMakeLists.txt @@ -62,7 +62,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/concept/vehicle-purchase/CMakeLists.txt b/exercises/concept/vehicle-purchase/CMakeLists.txt index 0d6061cc2..24d8a62a6 100644 --- a/exercises/concept/vehicle-purchase/CMakeLists.txt +++ b/exercises/concept/vehicle-purchase/CMakeLists.txt @@ -65,7 +65,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/acronym/CMakeLists.txt b/exercises/practice/acronym/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/acronym/CMakeLists.txt +++ b/exercises/practice/acronym/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/all-your-base/CMakeLists.txt b/exercises/practice/all-your-base/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/all-your-base/CMakeLists.txt +++ b/exercises/practice/all-your-base/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/allergies/CMakeLists.txt b/exercises/practice/allergies/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/allergies/CMakeLists.txt +++ b/exercises/practice/allergies/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/anagram/CMakeLists.txt b/exercises/practice/anagram/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/anagram/CMakeLists.txt +++ b/exercises/practice/anagram/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/armstrong-numbers/CMakeLists.txt b/exercises/practice/armstrong-numbers/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/armstrong-numbers/CMakeLists.txt +++ b/exercises/practice/armstrong-numbers/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/atbash-cipher/CMakeLists.txt b/exercises/practice/atbash-cipher/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/atbash-cipher/CMakeLists.txt +++ b/exercises/practice/atbash-cipher/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/bank-account/CMakeLists.txt b/exercises/practice/bank-account/CMakeLists.txt index 4032b5eee..82efa96b9 100644 --- a/exercises/practice/bank-account/CMakeLists.txt +++ b/exercises/practice/bank-account/CMakeLists.txt @@ -64,7 +64,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/beer-song/CMakeLists.txt b/exercises/practice/beer-song/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/beer-song/CMakeLists.txt +++ b/exercises/practice/beer-song/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/binary-search-tree/CMakeLists.txt b/exercises/practice/binary-search-tree/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/binary-search-tree/CMakeLists.txt +++ b/exercises/practice/binary-search-tree/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/binary-search/CMakeLists.txt b/exercises/practice/binary-search/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/binary-search/CMakeLists.txt +++ b/exercises/practice/binary-search/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/binary/CMakeLists.txt b/exercises/practice/binary/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/binary/CMakeLists.txt +++ b/exercises/practice/binary/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/bob/CMakeLists.txt b/exercises/practice/bob/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/bob/CMakeLists.txt +++ b/exercises/practice/bob/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/circular-buffer/CMakeLists.txt b/exercises/practice/circular-buffer/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/circular-buffer/CMakeLists.txt +++ b/exercises/practice/circular-buffer/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/clock/CMakeLists.txt b/exercises/practice/clock/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/clock/CMakeLists.txt +++ b/exercises/practice/clock/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/collatz-conjecture/CMakeLists.txt b/exercises/practice/collatz-conjecture/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/collatz-conjecture/CMakeLists.txt +++ b/exercises/practice/collatz-conjecture/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/complex-numbers/CMakeLists.txt b/exercises/practice/complex-numbers/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/complex-numbers/CMakeLists.txt +++ b/exercises/practice/complex-numbers/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/crypto-square/CMakeLists.txt b/exercises/practice/crypto-square/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/crypto-square/CMakeLists.txt +++ b/exercises/practice/crypto-square/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/darts/CMakeLists.txt b/exercises/practice/darts/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/darts/CMakeLists.txt +++ b/exercises/practice/darts/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/diamond/CMakeLists.txt b/exercises/practice/diamond/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/diamond/CMakeLists.txt +++ b/exercises/practice/diamond/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/difference-of-squares/CMakeLists.txt b/exercises/practice/difference-of-squares/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/difference-of-squares/CMakeLists.txt +++ b/exercises/practice/difference-of-squares/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/dnd-character/CMakeLists.txt b/exercises/practice/dnd-character/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/dnd-character/CMakeLists.txt +++ b/exercises/practice/dnd-character/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/eliuds-eggs/CMakeLists.txt b/exercises/practice/eliuds-eggs/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/eliuds-eggs/CMakeLists.txt +++ b/exercises/practice/eliuds-eggs/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/etl/CMakeLists.txt b/exercises/practice/etl/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/etl/CMakeLists.txt +++ b/exercises/practice/etl/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/food-chain/CMakeLists.txt b/exercises/practice/food-chain/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/food-chain/CMakeLists.txt +++ b/exercises/practice/food-chain/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/gigasecond/CMakeLists.txt b/exercises/practice/gigasecond/CMakeLists.txt index 646162478..9ee7f8a43 100644 --- a/exercises/practice/gigasecond/CMakeLists.txt +++ b/exercises/practice/gigasecond/CMakeLists.txt @@ -71,7 +71,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/grade-school/CMakeLists.txt b/exercises/practice/grade-school/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/grade-school/CMakeLists.txt +++ b/exercises/practice/grade-school/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/grains/CMakeLists.txt b/exercises/practice/grains/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/grains/CMakeLists.txt +++ b/exercises/practice/grains/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/hamming/CMakeLists.txt b/exercises/practice/hamming/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/hamming/CMakeLists.txt +++ b/exercises/practice/hamming/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/hello-world/CMakeLists.txt b/exercises/practice/hello-world/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/hello-world/CMakeLists.txt +++ b/exercises/practice/hello-world/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/hexadecimal/CMakeLists.txt b/exercises/practice/hexadecimal/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/hexadecimal/CMakeLists.txt +++ b/exercises/practice/hexadecimal/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/high-scores/CMakeLists.txt b/exercises/practice/high-scores/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/high-scores/CMakeLists.txt +++ b/exercises/practice/high-scores/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/isbn-verifier/CMakeLists.txt b/exercises/practice/isbn-verifier/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/isbn-verifier/CMakeLists.txt +++ b/exercises/practice/isbn-verifier/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/isogram/CMakeLists.txt b/exercises/practice/isogram/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/isogram/CMakeLists.txt +++ b/exercises/practice/isogram/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/kindergarten-garden/CMakeLists.txt b/exercises/practice/kindergarten-garden/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/kindergarten-garden/CMakeLists.txt +++ b/exercises/practice/kindergarten-garden/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/knapsack/CMakeLists.txt b/exercises/practice/knapsack/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/knapsack/CMakeLists.txt +++ b/exercises/practice/knapsack/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/largest-series-product/CMakeLists.txt b/exercises/practice/largest-series-product/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/largest-series-product/CMakeLists.txt +++ b/exercises/practice/largest-series-product/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/leap/CMakeLists.txt b/exercises/practice/leap/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/leap/CMakeLists.txt +++ b/exercises/practice/leap/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/linked-list/CMakeLists.txt b/exercises/practice/linked-list/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/linked-list/CMakeLists.txt +++ b/exercises/practice/linked-list/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/list-ops/CMakeLists.txt b/exercises/practice/list-ops/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/list-ops/CMakeLists.txt +++ b/exercises/practice/list-ops/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/luhn/CMakeLists.txt b/exercises/practice/luhn/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/luhn/CMakeLists.txt +++ b/exercises/practice/luhn/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/matching-brackets/CMakeLists.txt b/exercises/practice/matching-brackets/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/matching-brackets/CMakeLists.txt +++ b/exercises/practice/matching-brackets/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/meetup/CMakeLists.txt b/exercises/practice/meetup/CMakeLists.txt index 646162478..9ee7f8a43 100644 --- a/exercises/practice/meetup/CMakeLists.txt +++ b/exercises/practice/meetup/CMakeLists.txt @@ -71,7 +71,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/minesweeper/CMakeLists.txt b/exercises/practice/minesweeper/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/minesweeper/CMakeLists.txt +++ b/exercises/practice/minesweeper/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/nth-prime/CMakeLists.txt b/exercises/practice/nth-prime/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/nth-prime/CMakeLists.txt +++ b/exercises/practice/nth-prime/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/nucleotide-count/CMakeLists.txt b/exercises/practice/nucleotide-count/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/nucleotide-count/CMakeLists.txt +++ b/exercises/practice/nucleotide-count/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/pangram/CMakeLists.txt b/exercises/practice/pangram/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/pangram/CMakeLists.txt +++ b/exercises/practice/pangram/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/parallel-letter-frequency/CMakeLists.txt b/exercises/practice/parallel-letter-frequency/CMakeLists.txt index ef58ca2f2..2c1edb224 100644 --- a/exercises/practice/parallel-letter-frequency/CMakeLists.txt +++ b/exercises/practice/parallel-letter-frequency/CMakeLists.txt @@ -68,7 +68,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/pascals-triangle/CMakeLists.txt b/exercises/practice/pascals-triangle/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/pascals-triangle/CMakeLists.txt +++ b/exercises/practice/pascals-triangle/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/perfect-numbers/CMakeLists.txt b/exercises/practice/perfect-numbers/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/perfect-numbers/CMakeLists.txt +++ b/exercises/practice/perfect-numbers/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/phone-number/CMakeLists.txt b/exercises/practice/phone-number/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/phone-number/CMakeLists.txt +++ b/exercises/practice/phone-number/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/pig-latin/CMakeLists.txt b/exercises/practice/pig-latin/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/pig-latin/CMakeLists.txt +++ b/exercises/practice/pig-latin/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/prime-factors/CMakeLists.txt b/exercises/practice/prime-factors/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/prime-factors/CMakeLists.txt +++ b/exercises/practice/prime-factors/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/protein-translation/CMakeLists.txt b/exercises/practice/protein-translation/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/protein-translation/CMakeLists.txt +++ b/exercises/practice/protein-translation/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/queen-attack/CMakeLists.txt b/exercises/practice/queen-attack/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/queen-attack/CMakeLists.txt +++ b/exercises/practice/queen-attack/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/rail-fence-cipher/CMakeLists.txt b/exercises/practice/rail-fence-cipher/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/rail-fence-cipher/CMakeLists.txt +++ b/exercises/practice/rail-fence-cipher/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/raindrops/CMakeLists.txt b/exercises/practice/raindrops/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/raindrops/CMakeLists.txt +++ b/exercises/practice/raindrops/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/resistor-color-duo/CMakeLists.txt b/exercises/practice/resistor-color-duo/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/resistor-color-duo/CMakeLists.txt +++ b/exercises/practice/resistor-color-duo/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/resistor-color/CMakeLists.txt b/exercises/practice/resistor-color/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/resistor-color/CMakeLists.txt +++ b/exercises/practice/resistor-color/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/reverse-string/CMakeLists.txt b/exercises/practice/reverse-string/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/reverse-string/CMakeLists.txt +++ b/exercises/practice/reverse-string/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/rna-transcription/CMakeLists.txt b/exercises/practice/rna-transcription/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/rna-transcription/CMakeLists.txt +++ b/exercises/practice/rna-transcription/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/robot-name/CMakeLists.txt b/exercises/practice/robot-name/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/robot-name/CMakeLists.txt +++ b/exercises/practice/robot-name/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/robot-simulator/CMakeLists.txt b/exercises/practice/robot-simulator/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/robot-simulator/CMakeLists.txt +++ b/exercises/practice/robot-simulator/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/roman-numerals/CMakeLists.txt b/exercises/practice/roman-numerals/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/roman-numerals/CMakeLists.txt +++ b/exercises/practice/roman-numerals/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/rotational-cipher/CMakeLists.txt b/exercises/practice/rotational-cipher/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/rotational-cipher/CMakeLists.txt +++ b/exercises/practice/rotational-cipher/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/run-length-encoding/CMakeLists.txt b/exercises/practice/run-length-encoding/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/run-length-encoding/CMakeLists.txt +++ b/exercises/practice/run-length-encoding/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/say/CMakeLists.txt b/exercises/practice/say/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/say/CMakeLists.txt +++ b/exercises/practice/say/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/scrabble-score/CMakeLists.txt b/exercises/practice/scrabble-score/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/scrabble-score/CMakeLists.txt +++ b/exercises/practice/scrabble-score/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/secret-handshake/CMakeLists.txt b/exercises/practice/secret-handshake/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/secret-handshake/CMakeLists.txt +++ b/exercises/practice/secret-handshake/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/series/CMakeLists.txt b/exercises/practice/series/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/series/CMakeLists.txt +++ b/exercises/practice/series/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/sieve/CMakeLists.txt b/exercises/practice/sieve/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/sieve/CMakeLists.txt +++ b/exercises/practice/sieve/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/simple-linked-list/CMakeLists.txt b/exercises/practice/simple-linked-list/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/simple-linked-list/CMakeLists.txt +++ b/exercises/practice/simple-linked-list/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/space-age/CMakeLists.txt b/exercises/practice/space-age/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/space-age/CMakeLists.txt +++ b/exercises/practice/space-age/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/spiral-matrix/CMakeLists.txt b/exercises/practice/spiral-matrix/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/spiral-matrix/CMakeLists.txt +++ b/exercises/practice/spiral-matrix/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/sublist/CMakeLists.txt b/exercises/practice/sublist/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/sublist/CMakeLists.txt +++ b/exercises/practice/sublist/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/sum-of-multiples/CMakeLists.txt b/exercises/practice/sum-of-multiples/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/sum-of-multiples/CMakeLists.txt +++ b/exercises/practice/sum-of-multiples/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/triangle/CMakeLists.txt b/exercises/practice/triangle/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/triangle/CMakeLists.txt +++ b/exercises/practice/triangle/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/trinary/CMakeLists.txt b/exercises/practice/trinary/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/trinary/CMakeLists.txt +++ b/exercises/practice/trinary/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/two-bucket/CMakeLists.txt b/exercises/practice/two-bucket/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/two-bucket/CMakeLists.txt +++ b/exercises/practice/two-bucket/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/two-fer/CMakeLists.txt b/exercises/practice/two-fer/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/two-fer/CMakeLists.txt +++ b/exercises/practice/two-fer/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/word-count/CMakeLists.txt b/exercises/practice/word-count/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/word-count/CMakeLists.txt +++ b/exercises/practice/word-count/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/yacht/CMakeLists.txt b/exercises/practice/yacht/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/yacht/CMakeLists.txt +++ b/exercises/practice/yacht/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build diff --git a/exercises/practice/zebra-puzzle/CMakeLists.txt b/exercises/practice/zebra-puzzle/CMakeLists.txt index 26408dab4..dba98a931 100644 --- a/exercises/practice/zebra-puzzle/CMakeLists.txt +++ b/exercises/practice/zebra-puzzle/CMakeLists.txt @@ -60,7 +60,7 @@ endif() if(${MSVC}) set_target_properties(${exercise} PROPERTIES COMPILE_DEFINITIONS_DEBUG _SCL_SECURE_NO_WARNINGS - COMPILE_FLAGS "/WX /W44244 /W44267") + COMPILE_FLAGS "/WX /w44244 /w44267") endif() # Run the tests on every build