File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ if(BUILD_TEST)
3030 message (STATUS "Test binary added to targets list" )
3131endif ()
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 ---
11199if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" )
112100 target_compile_options (serialization-static PRIVATE
You can’t perform that action at this time.
0 commit comments