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] 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