Skip to content

Commit

Permalink
Fix x86 Build (Invalid parameter to -march=)
Browse files Browse the repository at this point in the history
  • Loading branch information
one-and-only committed Jun 16, 2024
1 parent 7f257af commit d183e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ if(MSVC)
else()
include(TestCXXAcceptsFlag)
message(STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}")
if(ARCH STREQUAL "default")
if(NOT ARCH OR ARCH STREQUAL "default")
set(ARCH_FLAG "")
elseif(PPC64LE)
set(ARCH_FLAG "-mcpu=power8")
Expand Down

0 comments on commit d183e47

Please sign in to comment.