File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ if(CCACHE_FOUND)
50
50
endif (CCACHE_FOUND )
51
51
52
52
if ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
53
- if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "powerpc" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64le" )
53
+ if (" ${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "powerpc" OR " ${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "ppc64" OR " ${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "ppc64le" )
54
54
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=native" )
55
55
else ()
56
56
#FIXME: x86 is -march=native, but doesn't mean every arch is this option. To keep original project's compatibility, I leave this except POWER.
@@ -80,7 +80,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
80
80
endif ()
81
81
endif ()
82
82
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
83
- if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "powerpc" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "ppc64le" )
83
+ if (" ${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "powerpc" OR " ${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "ppc64" OR " ${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "ppc64le" )
84
84
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=native" )
85
85
else ()
86
86
#FIXME: x86 is -march=native, but doesn't mean every arch is this option. To keep original project's compatibility, I leave this except POWER.
You can’t perform that action at this time.
0 commit comments