]> git.ipfire.org Git - ipfire-3.x.git/blob - cmake/patches/cmake-strict_aliasing.patch
cmake: Update to 3.0.2
[ipfire-3.x.git] / cmake / patches / cmake-strict_aliasing.patch
1 diff -up cmake-2.8.11/Source/CMakeLists.txt\~ cmake-2.8.11/Source/CMakeLists.txt
2 --- cmake-2.8.11/Source/CMakeLists.txt~ 2013-05-15 19:38:13.000000000 +0200
3 +++ cmake-2.8.11/Source/CMakeLists.txt 2013-07-25 16:35:01.200389140 +0200
4 @@ -308,6 +308,13 @@ if(APPLE)
5 cmLocalXCodeGenerator.h)
6 endif()
7
8 +# GCC shows strict aliasing warnings with cm_sha2.c. Turn off the
9 +# corresponding optimizations.
10 +if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
11 + set_source_files_properties(cm_sha2.c PROPERTIES
12 + COMPILE_FLAGS "-fno-strict-aliasing")
13 +endif()
14 +
15
16 if (WIN32)
17 set(SRCS ${SRCS}
18
19 Diff finished. Thu Jul 25 16:35:18 2013