Skip to content

Commit

Permalink
Remove x86 specific macro definitions in MSVC build in CMake (#62602)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong authored and olanti-p committed Oct 17, 2023
1 parent 9b34fcd commit e7286d7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,7 @@ endif ()

message(STATUS "See CMake compiling guide for details and more info --\n")

if (MSVC)
if ("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
add_definitions(-D_AMD64_)
else ()
add_definitions(-D_X86_)
endif ()
else ()
if (NOT MSVC)
set(CATA_WARNINGS
"-Werror -Wall -Wextra \
-Wformat-signedness \
Expand Down

0 comments on commit e7286d7

Please sign in to comment.