From 3bbc94d0f1a980de7155ef95a7b5af72db95c900 Mon Sep 17 00:00:00 2001 From: DongWook Lee Date: Sat, 6 Apr 2024 04:52:11 +0900 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d068d4d..965c22d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,8 +51,8 @@ target_include_directories(${LIB_NAME14} PUBLIC ${INCLUDE_DIR} PRIVATE ${rapidjs if (UNIX) - target_compile_options(${LIB_NAME} PRIVATE -m64 -std=c++20 -pthread -Wno-narrowing -Wextra -O2) - target_compile_options(${LIB_NAME14} PRIVATE -m64 -std=c++14 -pthread -Wno-narrowing -Wextra -O2) + target_compile_options(${LIB_NAME} PRIVATE -m64 -std=c++20 -march=haswell -pthread -Wno-narrowing -Wextra -O2) + target_compile_options(${LIB_NAME14} PRIVATE -m64 -std=c++14 -march=haswell -pthread -Wno-narrowing -Wextra -O2) elseif (MSVC)