From 129189cf13d7626ef94983ea085cff0a27203f23 Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 15 Jun 2019 10:32:25 -0700 Subject: [PATCH 01/10] Updating all CMakeLists.txt files to C++14. --- exercises/acronym/CMakeLists.txt | 2 +- exercises/all-your-base/CMakeLists.txt | 2 +- exercises/allergies/CMakeLists.txt | 2 +- exercises/anagram/CMakeLists.txt | 2 +- exercises/armstrong-numbers/CMakeLists.txt | 4 ++-- exercises/atbash-cipher/CMakeLists.txt | 2 +- exercises/beer-song/CMakeLists.txt | 2 +- exercises/binary-search-tree/CMakeLists.txt | 2 +- exercises/binary-search/CMakeLists.txt | 2 +- exercises/binary/CMakeLists.txt | 2 +- exercises/bob/CMakeLists.txt | 2 +- exercises/clock/CMakeLists.txt | 2 +- exercises/crypto-square/CMakeLists.txt | 2 +- exercises/difference-of-squares/CMakeLists.txt | 2 +- exercises/etl/CMakeLists.txt | 2 +- exercises/food-chain/CMakeLists.txt | 2 +- exercises/gigasecond/CMakeLists.txt | 2 +- exercises/grade-school/CMakeLists.txt | 2 +- exercises/grains/CMakeLists.txt | 2 +- exercises/hamming/CMakeLists.txt | 2 +- exercises/hello-world/CMakeLists.txt | 2 +- exercises/hexadecimal/CMakeLists.txt | 2 +- exercises/isogram/CMakeLists.txt | 2 +- exercises/leap/CMakeLists.txt | 2 +- exercises/luhn/CMakeLists.txt | 2 +- exercises/matching-brackets/CMakeLists.txt | 2 +- exercises/meetup/CMakeLists.txt | 2 +- exercises/nth-prime/CMakeLists.txt | 2 +- exercises/nucleotide-count/CMakeLists.txt | 2 +- exercises/pangram/CMakeLists.txt | 2 +- exercises/pascals-triangle/CMakeLists.txt | 2 +- exercises/phone-number/CMakeLists.txt | 2 +- exercises/prime-factors/CMakeLists.txt | 2 +- exercises/queen-attack/CMakeLists.txt | 2 +- exercises/raindrops/CMakeLists.txt | 2 +- exercises/reverse-string/CMakeLists.txt | 2 +- exercises/rna-transcription/CMakeLists.txt | 2 +- exercises/robot-name/CMakeLists.txt | 2 +- exercises/robot-simulator/CMakeLists.txt | 2 +- exercises/roman-numerals/CMakeLists.txt | 2 +- exercises/say/CMakeLists.txt | 2 +- exercises/scrabble-score/CMakeLists.txt | 2 +- exercises/series/CMakeLists.txt | 2 +- exercises/sieve/CMakeLists.txt | 2 +- exercises/space-age/CMakeLists.txt | 2 +- exercises/sum-of-multiples/CMakeLists.txt | 2 +- exercises/triangle/CMakeLists.txt | 2 +- exercises/trinary/CMakeLists.txt | 2 +- exercises/word-count/CMakeLists.txt | 2 +- 49 files changed, 50 insertions(+), 50 deletions(-) diff --git a/exercises/acronym/CMakeLists.txt b/exercises/acronym/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/acronym/CMakeLists.txt +++ b/exercises/acronym/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/all-your-base/CMakeLists.txt b/exercises/all-your-base/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/all-your-base/CMakeLists.txt +++ b/exercises/all-your-base/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/allergies/CMakeLists.txt b/exercises/allergies/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/allergies/CMakeLists.txt +++ b/exercises/allergies/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/anagram/CMakeLists.txt b/exercises/anagram/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/anagram/CMakeLists.txt +++ b/exercises/anagram/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/armstrong-numbers/CMakeLists.txt b/exercises/armstrong-numbers/CMakeLists.txt index 0bd718df..cf0a39a1 100644 --- a/exercises/armstrong-numbers/CMakeLists.txt +++ b/exercises/armstrong-numbers/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) @@ -50,4 +50,4 @@ if(${MSVC}) 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/atbash-cipher/CMakeLists.txt b/exercises/atbash-cipher/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/atbash-cipher/CMakeLists.txt +++ b/exercises/atbash-cipher/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/beer-song/CMakeLists.txt b/exercises/beer-song/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/beer-song/CMakeLists.txt +++ b/exercises/beer-song/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/binary-search-tree/CMakeLists.txt b/exercises/binary-search-tree/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/binary-search-tree/CMakeLists.txt +++ b/exercises/binary-search-tree/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/binary-search/CMakeLists.txt b/exercises/binary-search/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/binary-search/CMakeLists.txt +++ b/exercises/binary-search/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/binary/CMakeLists.txt b/exercises/binary/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/binary/CMakeLists.txt +++ b/exercises/binary/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/bob/CMakeLists.txt b/exercises/bob/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/bob/CMakeLists.txt +++ b/exercises/bob/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/clock/CMakeLists.txt b/exercises/clock/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/clock/CMakeLists.txt +++ b/exercises/clock/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/crypto-square/CMakeLists.txt b/exercises/crypto-square/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/crypto-square/CMakeLists.txt +++ b/exercises/crypto-square/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/difference-of-squares/CMakeLists.txt b/exercises/difference-of-squares/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/difference-of-squares/CMakeLists.txt +++ b/exercises/difference-of-squares/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/etl/CMakeLists.txt b/exercises/etl/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/etl/CMakeLists.txt +++ b/exercises/etl/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/food-chain/CMakeLists.txt b/exercises/food-chain/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/food-chain/CMakeLists.txt +++ b/exercises/food-chain/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/gigasecond/CMakeLists.txt b/exercises/gigasecond/CMakeLists.txt index 2da5293b..e731bc05 100644 --- a/exercises/gigasecond/CMakeLists.txt +++ b/exercises/gigasecond/CMakeLists.txt @@ -33,7 +33,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/grade-school/CMakeLists.txt b/exercises/grade-school/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/grade-school/CMakeLists.txt +++ b/exercises/grade-school/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/grains/CMakeLists.txt b/exercises/grains/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/grains/CMakeLists.txt +++ b/exercises/grains/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/hamming/CMakeLists.txt b/exercises/hamming/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/hamming/CMakeLists.txt +++ b/exercises/hamming/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/hello-world/CMakeLists.txt b/exercises/hello-world/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/hello-world/CMakeLists.txt +++ b/exercises/hello-world/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/hexadecimal/CMakeLists.txt b/exercises/hexadecimal/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/hexadecimal/CMakeLists.txt +++ b/exercises/hexadecimal/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/isogram/CMakeLists.txt b/exercises/isogram/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/isogram/CMakeLists.txt +++ b/exercises/isogram/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/leap/CMakeLists.txt b/exercises/leap/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/leap/CMakeLists.txt +++ b/exercises/leap/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/luhn/CMakeLists.txt b/exercises/luhn/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/luhn/CMakeLists.txt +++ b/exercises/luhn/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/matching-brackets/CMakeLists.txt b/exercises/matching-brackets/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/matching-brackets/CMakeLists.txt +++ b/exercises/matching-brackets/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/meetup/CMakeLists.txt b/exercises/meetup/CMakeLists.txt index 2da5293b..e731bc05 100644 --- a/exercises/meetup/CMakeLists.txt +++ b/exercises/meetup/CMakeLists.txt @@ -33,7 +33,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/nth-prime/CMakeLists.txt b/exercises/nth-prime/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/nth-prime/CMakeLists.txt +++ b/exercises/nth-prime/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/nucleotide-count/CMakeLists.txt b/exercises/nucleotide-count/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/nucleotide-count/CMakeLists.txt +++ b/exercises/nucleotide-count/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/pangram/CMakeLists.txt b/exercises/pangram/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/pangram/CMakeLists.txt +++ b/exercises/pangram/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/pascals-triangle/CMakeLists.txt b/exercises/pascals-triangle/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/pascals-triangle/CMakeLists.txt +++ b/exercises/pascals-triangle/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/phone-number/CMakeLists.txt b/exercises/phone-number/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/phone-number/CMakeLists.txt +++ b/exercises/phone-number/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/prime-factors/CMakeLists.txt b/exercises/prime-factors/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/prime-factors/CMakeLists.txt +++ b/exercises/prime-factors/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/queen-attack/CMakeLists.txt b/exercises/queen-attack/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/queen-attack/CMakeLists.txt +++ b/exercises/queen-attack/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/raindrops/CMakeLists.txt b/exercises/raindrops/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/raindrops/CMakeLists.txt +++ b/exercises/raindrops/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/reverse-string/CMakeLists.txt b/exercises/reverse-string/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/reverse-string/CMakeLists.txt +++ b/exercises/reverse-string/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/rna-transcription/CMakeLists.txt b/exercises/rna-transcription/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/rna-transcription/CMakeLists.txt +++ b/exercises/rna-transcription/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/robot-name/CMakeLists.txt b/exercises/robot-name/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/robot-name/CMakeLists.txt +++ b/exercises/robot-name/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/robot-simulator/CMakeLists.txt b/exercises/robot-simulator/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/robot-simulator/CMakeLists.txt +++ b/exercises/robot-simulator/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/roman-numerals/CMakeLists.txt b/exercises/roman-numerals/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/roman-numerals/CMakeLists.txt +++ b/exercises/roman-numerals/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/say/CMakeLists.txt b/exercises/say/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/say/CMakeLists.txt +++ b/exercises/say/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/scrabble-score/CMakeLists.txt b/exercises/scrabble-score/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/scrabble-score/CMakeLists.txt +++ b/exercises/scrabble-score/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/series/CMakeLists.txt b/exercises/series/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/series/CMakeLists.txt +++ b/exercises/series/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/sieve/CMakeLists.txt b/exercises/sieve/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/sieve/CMakeLists.txt +++ b/exercises/sieve/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/space-age/CMakeLists.txt b/exercises/space-age/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/space-age/CMakeLists.txt +++ b/exercises/space-age/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/sum-of-multiples/CMakeLists.txt b/exercises/sum-of-multiples/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/sum-of-multiples/CMakeLists.txt +++ b/exercises/sum-of-multiples/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/triangle/CMakeLists.txt b/exercises/triangle/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/triangle/CMakeLists.txt +++ b/exercises/triangle/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/trinary/CMakeLists.txt b/exercises/trinary/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/trinary/CMakeLists.txt +++ b/exercises/trinary/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) diff --git a/exercises/word-count/CMakeLists.txt b/exercises/word-count/CMakeLists.txt index fdb4d1db..cf0a39a1 100644 --- a/exercises/word-count/CMakeLists.txt +++ b/exercises/word-count/CMakeLists.txt @@ -27,7 +27,7 @@ else() endif() set_target_properties(${exercise} PROPERTIES - CXX_STANDARD 11 + CXX_STANDARD 14 CXX_STANDARD_REQUIRED OFF CXX_EXTENSIONS OFF ) From 5dee5dd62da0300306193762ba2e9d9008a97219 Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 15 Jun 2019 10:35:28 -0700 Subject: [PATCH 02/10] Updating Travis to C++14 compatible compilers. --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 78115923..584aa960 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,22 +5,22 @@ os: linux matrix: include: - - env: COMPILER=g++-4.9 + - env: COMPILER=g++-7 addons: apt: sources: - ubuntu-toolchain-r-test packages: - - g++-4.9 + - g++-7 - - env: COMPILER=clang++-3.8 + - env: COMPILER=clang++-6.0 addons: apt: sources: - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.8 + - llvm-toolchain-precise-6 packages: - - clang-3.8 + - clang-6 - env: - COMPILER=clang++-7 From 1bfa41cf6229f82472a0f198c889fece469497b5 Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 15 Jun 2019 10:43:32 -0700 Subject: [PATCH 03/10] Updating docs to reference C++14. --- docs/INSTALLATION.md | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index db50723f..fa01b194 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -2,7 +2,7 @@ The C++ language track requires that you have the following software installed on your system: -* a modern C++11 compiler +* a modern C++14 compiler * the CMake cross-platform build system We use [Catch2](https://github.com/catchorg/Catch2) for testing, which is a @@ -15,13 +15,13 @@ Many IDE's, including Microsoft's Visual Studio, Apple's Xcode, and JetBrains' CLion bundle a compiler and CMake together, so you should only need to install the IDE. -### A Modern C++11 Compiler +### A Modern C++14 Compiler -This language track requires a compiler with [C++11](http://en.wikipedia.org/wiki/C%2B%2B11) -support, which was released in 2011. All major compilers released in the last few years should +This language track requires a compiler with [C++14](http://en.wikipedia.org/wiki/C%2B%2B14) +support, which was released in 2014. All major compilers released in the last few years should be compatible, so as long as you are on a fairly recent version you should be fine. -Specifically, GCC version 5.1 or later, Clang version 3.8 or later, or Visual -Studio 2015 or later. +Specifically, GCC version 7 or later, Clang version 6 or later, or Visual +Studio 2017 or later. ### CMake @@ -64,7 +64,7 @@ You should be able to use other integrated IDE's such as JetBrains' CLion in a s ## Linux -All recent Linux distribution releases have compatible C++11 compilers, you +All recent Linux distribution releases have compatible C++14 compilers, you should be able to install it using your package manager. For example, on Ubuntu you would use the following command to install gcc. @@ -75,18 +75,8 @@ $ gcc --version ``` If you are on an older distribution, you might not have a compiler that -supports C++11. In that case you will need to install it through an alternate -method. For example, Ubuntu 15.10 or earlier don't provide compatible compilers -in the package manager, so if you are using that version you will need to use -the following: - -```bash -$ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test -$ sudo apt-get -qq -d update -$ sudo apt-get -qq install g++-5 -$ # make g++ 5 the default g++ executable -$ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90 -``` +supports C++14. If that's the case, you'll need to work with your distribution +to figure out how to install the minimum compiler version. ## MacOS From 6f83b2f8761ca16f1755da24f963aad7fcde8139 Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 15 Jun 2019 10:47:03 -0700 Subject: [PATCH 04/10] Fixing Travis Clang dependency --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 584aa960..d825af74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,9 +18,9 @@ matrix: apt: sources: - ubuntu-toolchain-r-test - - llvm-toolchain-precise-6 + - llvm-toolchain-trusty-6.0 packages: - - clang-6 + - clang-6.0 - env: - COMPILER=clang++-7 From 77aed33e85c73b8432753602b86dbb1502872e07 Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 22 Jun 2019 10:50:47 -0700 Subject: [PATCH 05/10] Updating docs to Ubuntu 16.04 reqs. --- docs/INSTALLATION.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md index fa01b194..ef9f3f92 100644 --- a/docs/INSTALLATION.md +++ b/docs/INSTALLATION.md @@ -13,14 +13,14 @@ issues setting it up you will find many helpful resources online. Many IDE's, including Microsoft's Visual Studio, Apple's Xcode, and JetBrains' CLion bundle a compiler and CMake together, so you should only need to install -the IDE. +the IDE. ### A Modern C++14 Compiler This language track requires a compiler with [C++14](http://en.wikipedia.org/wiki/C%2B%2B14) support, which was released in 2014. All major compilers released in the last few years should be compatible, so as long as you are on a fairly recent version you should be fine. -Specifically, GCC version 7 or later, Clang version 6 or later, or Visual +Specifically, GCC version 5 or later, Clang version 3.8 or later, or Visual Studio 2017 or later. ### CMake @@ -45,7 +45,7 @@ systems. If you encounter any problems with the supplied CMake recipe, please [report the issue](https://github.com/exercism/cpp/issues) so we can improve the CMake support. -[CMake 3.1.3 or later](http://www.cmake.org/) is required to use the provided build recipe. +[CMake 3.5.1 or later](http://www.cmake.org/) is required to use the provided build recipe. ## Windows @@ -65,7 +65,8 @@ You should be able to use other integrated IDE's such as JetBrains' CLion in a s ## Linux All recent Linux distribution releases have compatible C++14 compilers, you -should be able to install it using your package manager. +should be able to install it using your package manager. The versions we support +are the default installed versions in Ubuntu LTS 16.04. For example, on Ubuntu you would use the following command to install gcc. From 14a8be7cf856b0cb3aab384206a5681cc6b7937d Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 22 Jun 2019 10:50:53 -0700 Subject: [PATCH 06/10] Updating required CMake version. --- CMakeLists.txt | 2 +- exercises/acronym/CMakeLists.txt | 2 +- exercises/all-your-base/CMakeLists.txt | 2 +- exercises/allergies/CMakeLists.txt | 2 +- exercises/anagram/CMakeLists.txt | 2 +- exercises/armstrong-numbers/CMakeLists.txt | 2 +- exercises/atbash-cipher/CMakeLists.txt | 2 +- exercises/beer-song/CMakeLists.txt | 2 +- exercises/binary-search-tree/CMakeLists.txt | 2 +- exercises/binary-search/CMakeLists.txt | 2 +- exercises/binary/CMakeLists.txt | 2 +- exercises/bob/CMakeLists.txt | 2 +- exercises/clock/CMakeLists.txt | 2 +- exercises/crypto-square/CMakeLists.txt | 2 +- exercises/difference-of-squares/CMakeLists.txt | 2 +- exercises/etl/CMakeLists.txt | 2 +- exercises/food-chain/CMakeLists.txt | 2 +- exercises/gigasecond/CMakeLists.txt | 2 +- exercises/grade-school/CMakeLists.txt | 2 +- exercises/grains/CMakeLists.txt | 2 +- exercises/hamming/CMakeLists.txt | 2 +- exercises/hello-world/CMakeLists.txt | 2 +- exercises/hexadecimal/CMakeLists.txt | 2 +- exercises/isogram/CMakeLists.txt | 2 +- exercises/leap/CMakeLists.txt | 2 +- exercises/luhn/CMakeLists.txt | 2 +- exercises/matching-brackets/CMakeLists.txt | 2 +- exercises/meetup/CMakeLists.txt | 2 +- exercises/nth-prime/CMakeLists.txt | 2 +- exercises/nucleotide-count/CMakeLists.txt | 2 +- exercises/pangram/CMakeLists.txt | 2 +- exercises/pascals-triangle/CMakeLists.txt | 2 +- exercises/phone-number/CMakeLists.txt | 2 +- exercises/prime-factors/CMakeLists.txt | 2 +- exercises/queen-attack/CMakeLists.txt | 2 +- exercises/raindrops/CMakeLists.txt | 2 +- exercises/reverse-string/CMakeLists.txt | 2 +- exercises/rna-transcription/CMakeLists.txt | 2 +- exercises/robot-name/CMakeLists.txt | 2 +- exercises/robot-simulator/CMakeLists.txt | 2 +- exercises/roman-numerals/CMakeLists.txt | 2 +- exercises/say/CMakeLists.txt | 2 +- exercises/scrabble-score/CMakeLists.txt | 2 +- exercises/series/CMakeLists.txt | 2 +- exercises/sieve/CMakeLists.txt | 2 +- exercises/space-age/CMakeLists.txt | 2 +- exercises/sum-of-multiples/CMakeLists.txt | 2 +- exercises/triangle/CMakeLists.txt | 2 +- exercises/trinary/CMakeLists.txt | 2 +- exercises/word-count/CMakeLists.txt | 2 +- 50 files changed, 50 insertions(+), 50 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index caf58c04..ede901b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) project(exercism CXX) set(alt_exercise_tree ${CMAKE_CURRENT_SOURCE_DIR}/build_exercises) diff --git a/exercises/acronym/CMakeLists.txt b/exercises/acronym/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/acronym/CMakeLists.txt +++ b/exercises/acronym/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/all-your-base/CMakeLists.txt b/exercises/all-your-base/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/all-your-base/CMakeLists.txt +++ b/exercises/all-your-base/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/allergies/CMakeLists.txt b/exercises/allergies/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/allergies/CMakeLists.txt +++ b/exercises/allergies/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/anagram/CMakeLists.txt b/exercises/anagram/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/anagram/CMakeLists.txt +++ b/exercises/anagram/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/armstrong-numbers/CMakeLists.txt b/exercises/armstrong-numbers/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/armstrong-numbers/CMakeLists.txt +++ b/exercises/armstrong-numbers/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/atbash-cipher/CMakeLists.txt b/exercises/atbash-cipher/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/atbash-cipher/CMakeLists.txt +++ b/exercises/atbash-cipher/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/beer-song/CMakeLists.txt b/exercises/beer-song/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/beer-song/CMakeLists.txt +++ b/exercises/beer-song/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/binary-search-tree/CMakeLists.txt b/exercises/binary-search-tree/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/binary-search-tree/CMakeLists.txt +++ b/exercises/binary-search-tree/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/binary-search/CMakeLists.txt b/exercises/binary-search/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/binary-search/CMakeLists.txt +++ b/exercises/binary-search/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/binary/CMakeLists.txt b/exercises/binary/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/binary/CMakeLists.txt +++ b/exercises/binary/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/bob/CMakeLists.txt b/exercises/bob/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/bob/CMakeLists.txt +++ b/exercises/bob/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/clock/CMakeLists.txt b/exercises/clock/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/clock/CMakeLists.txt +++ b/exercises/clock/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/crypto-square/CMakeLists.txt b/exercises/crypto-square/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/crypto-square/CMakeLists.txt +++ b/exercises/crypto-square/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/difference-of-squares/CMakeLists.txt b/exercises/difference-of-squares/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/difference-of-squares/CMakeLists.txt +++ b/exercises/difference-of-squares/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/etl/CMakeLists.txt b/exercises/etl/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/etl/CMakeLists.txt +++ b/exercises/etl/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/food-chain/CMakeLists.txt b/exercises/food-chain/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/food-chain/CMakeLists.txt +++ b/exercises/food-chain/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/gigasecond/CMakeLists.txt b/exercises/gigasecond/CMakeLists.txt index e731bc05..ef52eb9b 100644 --- a/exercises/gigasecond/CMakeLists.txt +++ b/exercises/gigasecond/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/grade-school/CMakeLists.txt b/exercises/grade-school/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/grade-school/CMakeLists.txt +++ b/exercises/grade-school/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/grains/CMakeLists.txt b/exercises/grains/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/grains/CMakeLists.txt +++ b/exercises/grains/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/hamming/CMakeLists.txt b/exercises/hamming/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/hamming/CMakeLists.txt +++ b/exercises/hamming/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/hello-world/CMakeLists.txt b/exercises/hello-world/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/hello-world/CMakeLists.txt +++ b/exercises/hello-world/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/hexadecimal/CMakeLists.txt b/exercises/hexadecimal/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/hexadecimal/CMakeLists.txt +++ b/exercises/hexadecimal/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/isogram/CMakeLists.txt b/exercises/isogram/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/isogram/CMakeLists.txt +++ b/exercises/isogram/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/leap/CMakeLists.txt b/exercises/leap/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/leap/CMakeLists.txt +++ b/exercises/leap/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/luhn/CMakeLists.txt b/exercises/luhn/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/luhn/CMakeLists.txt +++ b/exercises/luhn/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/matching-brackets/CMakeLists.txt b/exercises/matching-brackets/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/matching-brackets/CMakeLists.txt +++ b/exercises/matching-brackets/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/meetup/CMakeLists.txt b/exercises/meetup/CMakeLists.txt index e731bc05..ef52eb9b 100644 --- a/exercises/meetup/CMakeLists.txt +++ b/exercises/meetup/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/nth-prime/CMakeLists.txt b/exercises/nth-prime/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/nth-prime/CMakeLists.txt +++ b/exercises/nth-prime/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/nucleotide-count/CMakeLists.txt b/exercises/nucleotide-count/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/nucleotide-count/CMakeLists.txt +++ b/exercises/nucleotide-count/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/pangram/CMakeLists.txt b/exercises/pangram/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/pangram/CMakeLists.txt +++ b/exercises/pangram/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/pascals-triangle/CMakeLists.txt b/exercises/pascals-triangle/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/pascals-triangle/CMakeLists.txt +++ b/exercises/pascals-triangle/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/phone-number/CMakeLists.txt b/exercises/phone-number/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/phone-number/CMakeLists.txt +++ b/exercises/phone-number/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/prime-factors/CMakeLists.txt b/exercises/prime-factors/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/prime-factors/CMakeLists.txt +++ b/exercises/prime-factors/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/queen-attack/CMakeLists.txt b/exercises/queen-attack/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/queen-attack/CMakeLists.txt +++ b/exercises/queen-attack/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/raindrops/CMakeLists.txt b/exercises/raindrops/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/raindrops/CMakeLists.txt +++ b/exercises/raindrops/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/reverse-string/CMakeLists.txt b/exercises/reverse-string/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/reverse-string/CMakeLists.txt +++ b/exercises/reverse-string/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/rna-transcription/CMakeLists.txt b/exercises/rna-transcription/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/rna-transcription/CMakeLists.txt +++ b/exercises/rna-transcription/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/robot-name/CMakeLists.txt b/exercises/robot-name/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/robot-name/CMakeLists.txt +++ b/exercises/robot-name/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/robot-simulator/CMakeLists.txt b/exercises/robot-simulator/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/robot-simulator/CMakeLists.txt +++ b/exercises/robot-simulator/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/roman-numerals/CMakeLists.txt b/exercises/roman-numerals/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/roman-numerals/CMakeLists.txt +++ b/exercises/roman-numerals/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/say/CMakeLists.txt b/exercises/say/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/say/CMakeLists.txt +++ b/exercises/say/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/scrabble-score/CMakeLists.txt b/exercises/scrabble-score/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/scrabble-score/CMakeLists.txt +++ b/exercises/scrabble-score/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/series/CMakeLists.txt b/exercises/series/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/series/CMakeLists.txt +++ b/exercises/series/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/sieve/CMakeLists.txt b/exercises/sieve/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/sieve/CMakeLists.txt +++ b/exercises/sieve/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/space-age/CMakeLists.txt b/exercises/space-age/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/space-age/CMakeLists.txt +++ b/exercises/space-age/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/sum-of-multiples/CMakeLists.txt b/exercises/sum-of-multiples/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/sum-of-multiples/CMakeLists.txt +++ b/exercises/sum-of-multiples/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/triangle/CMakeLists.txt b/exercises/triangle/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/triangle/CMakeLists.txt +++ b/exercises/triangle/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/trinary/CMakeLists.txt b/exercises/trinary/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/trinary/CMakeLists.txt +++ b/exercises/trinary/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) diff --git a/exercises/word-count/CMakeLists.txt b/exercises/word-count/CMakeLists.txt index cf0a39a1..4407d098 100644 --- a/exercises/word-count/CMakeLists.txt +++ b/exercises/word-count/CMakeLists.txt @@ -2,7 +2,7 @@ get_filename_component(exercise ${CMAKE_CURRENT_SOURCE_DIR} NAME) # Basic CMake project -cmake_minimum_required(VERSION 3.1.3) +cmake_minimum_required(VERSION 3.5.1) # Name the project after the exercise project(${exercise} CXX) From f1ec357c38235b7ff11d9e61e8420d6a00364748 Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 22 Jun 2019 10:54:42 -0700 Subject: [PATCH 07/10] Changing travis reqs to Ubuntu 16.04 versions. --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d825af74..31265cc4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,22 +5,22 @@ os: linux matrix: include: - - env: COMPILER=g++-7 + - env: COMPILER=g++-5 addons: apt: sources: - ubuntu-toolchain-r-test packages: - - g++-7 + - g++-5 - - env: COMPILER=clang++-6.0 + - env: COMPILER=clang++-3.8 addons: apt: sources: - ubuntu-toolchain-r-test - - llvm-toolchain-trusty-6.0 + - llvm-toolchain-precise-3.8 packages: - - clang-6.0 + - clang-3.8 - env: - COMPILER=clang++-7 From a1963667883f43100b965bbd14050625e0c48034 Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 22 Jun 2019 11:15:05 -0700 Subject: [PATCH 08/10] Travis quick fix. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 31265cc4..f239b85d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,7 @@ matrix: - llvm-toolchain-precise-3.8 packages: - clang-3.8 + - libc++-dev - env: - COMPILER=clang++-7 From e0e47ecc25a09238ecf8d25aa13f799817221cf6 Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 22 Jun 2019 11:22:51 -0700 Subject: [PATCH 09/10] Travis quick fix take 2. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f239b85d..eb1901b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ matrix: - llvm-toolchain-precise-3.8 packages: - clang-3.8 - - libc++-dev + - g++-5 - env: - COMPILER=clang++-7 From 9501899fdafa64408eef7ec1af403b990f0fd3af Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Sat, 22 Jun 2019 11:30:36 -0700 Subject: [PATCH 10/10] Fixing default init in allergies. --- exercises/allergies/allergies_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/allergies/allergies_test.cpp b/exercises/allergies/allergies_test.cpp index 6c4420cf..da998559 100644 --- a/exercises/allergies/allergies_test.cpp +++ b/exercises/allergies/allergies_test.cpp @@ -82,7 +82,7 @@ TEST_CASE("allergic_to_eggs_and_other_stuff") TEST_CASE("allergic_to_nothing") { allergies::allergy_test score(0); - const std::unordered_set no_allergies; + const std::unordered_set no_allergies{}; REQUIRE(no_allergies == score.get_allergies()); }