Merge branch 'gcc_optimizer_bug' into 'master'

Added a little safeguard against GCC optimizer bug to CMakeLists.txt.



See merge request !88
7 jobs for master in 21 minutes and 11 seconds
Status Name Job ID Coverage
  Test
passed clang-c++11 #10040
Linux

00:21:10

passed clang-c++98 #10042
Linux

00:16:19

passed cppcheck #10045
Linux

00:00:28

passed gcc-c++11 #10039
Linux

00:04:30

passed gcc-c++98 #10041
Linux

00:04:13

passed macos-c++11 #10043
Apple

00:16:34

passed macos-c++98 #10044
Apple

00:15:20