From e0e8b63ceec051f9a129d483cc541aa6e269adf3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 23 Aug 2017 04:50:28 -0400 Subject: [PATCH] Test remove -march=native Also see "Random crashes on different computers because option -march=native is active 'by default'", https://github.com/weidai11/cryptopp/issues/380 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 573213c1..c293bbc9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -305,7 +305,7 @@ endif() # New as of Pull Request 461, http://github.com/weidai11/cryptopp/pull/461. # These are hard coded for X86 at the moment. We need to fix them. -if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" Or "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") +if (("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") OR ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")) set_source_files_properties(aria-simd.cpp PROPERTIES COMPILE_FLAGS -mssse3) set_source_files_properties(blake2-simd.cpp PROPERTIES COMPILE_FLAGS -msse4.2) set_source_files_properties(crc-simd.cpp PROPERTIES COMPILE_FLAGS -msse4.2)