Skip to content

Commit 2275291

Browse files
cleanup cmake
1 parent 78ea4b0 commit 2275291

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ if(BUILD_TEST)
3030
message(STATUS "Test binary added to targets list")
3131
endif()
3232

33-
# Architecture flag (non-MSVC only)
34-
if(NOT MSVC)
35-
set(ARCH native CACHE STRING "CPU to build for: -march value or 'default' for none")
36-
endif()
37-
3833
# --- Detect MinGW environment ---
3934
# Only use CMake's built-in MINGW (set for GCC with MinGW). Clang on Windows can
4035
# target either MinGW or MSVC ABI, and the linker varies (GNU ld vs lld-link) —
@@ -100,13 +95,6 @@ target_include_directories(serialization-static SYSTEM PUBLIC
10095
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/external/rapidjson/include>
10196
)
10297

103-
# --- Architecture flag (PRIVATE — do not leak -march to consumers) ---
104-
if(NOT MSVC AND NOT "${ARCH}" STREQUAL "default")
105-
target_compile_options(serialization-static PRIVATE
106-
$<${_is_gnu_like}:-march=${ARCH}>
107-
)
108-
endif()
109-
11098
# --- Hardening: GCC/Clang ---
11199
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
112100
target_compile_options(serialization-static PRIVATE

external/uint256_t

0 commit comments

Comments
 (0)