diff options
| -rw-r--r-- | externals/cryptopp/CMakeLists.txt | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/externals/cryptopp/CMakeLists.txt b/externals/cryptopp/CMakeLists.txt index bbac71bb9..653af1e4b 100644 --- a/externals/cryptopp/CMakeLists.txt +++ b/externals/cryptopp/CMakeLists.txt | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | # The differences are: | 3 | # The differences are: |
| 4 | # - removed support for legacy CMake versions | 4 | # - removed support for legacy CMake versions |
| 5 | # - removed support for 32-bit | 5 | # - removed support for 32-bit |
| 6 | # - removed -march=native flag | ||
| 6 | # - removed rdrand module.asm as a workaround for an issue (see below) | 7 | # - removed rdrand module.asm as a workaround for an issue (see below) |
| 7 | # - added prefix "CRYPTOPP_" to all option names | 8 | # - added prefix "CRYPTOPP_" to all option names |
| 8 | # - disabled testing | 9 | # - disabled testing |
| @@ -96,14 +97,6 @@ if ((NOT CRYPTOPP_CROSS_COMPILE) AND (NOT (WINDOWS OR WINDOWS_STORE OR WINDOWS_P | |||
| 96 | endif() | 97 | endif() |
| 97 | endif() | 98 | endif() |
| 98 | 99 | ||
| 99 | # -march=native for GCC, Clang and ICC in any version that does support it. | ||
| 100 | if ((NOT CRYPTOPP_DISABLE_CXXFLAGS_OPTIMIZATIONS) AND (NOT CRYPTOPP_CROSS_COMPILE) AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU|Intel")) | ||
| 101 | CHECK_CXX_COMPILER_FLAG("-march=native" COMPILER_OPT_ARCH_NATIVE_SUPPORTED) | ||
| 102 | if (COMPILER_OPT_ARCH_NATIVE_SUPPORTED AND NOT CMAKE_CXX_FLAGS MATCHES "-march=") | ||
| 103 | SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") | ||
| 104 | endif() | ||
| 105 | endif() | ||
| 106 | |||
| 107 | # Link is driven through the compiler, but CXXFLAGS are not used. Also see | 100 | # Link is driven through the compiler, but CXXFLAGS are not used. Also see |
| 108 | # http://public.kitware.com/pipermail/cmake/2003-June/003967.html | 101 | # http://public.kitware.com/pipermail/cmake/2003-June/003967.html |
| 109 | if (NOT (WINDOWS OR WINDOWS_STORE OR WINDOWS_PHONE)) | 102 | if (NOT (WINDOWS OR WINDOWS_STORE OR WINDOWS_PHONE)) |