diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c4e03e..65627b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,8 +49,8 @@ target_include_directories(${LIB_NAME14} PUBLIC ${INCLUDE_DIR} PRIVATE ${rapidjs if (UNIX) - target_compile_options(${LIB_NAME} PRIVATE -m64 -std=c++20 -march=native -pthread -Wno-narrowing -Wextra -O2) - target_compile_options(${LIB_NAME14} PRIVATE -m64 -std=c++14 -march=native -pthread -Wno-narrowing -Wextra -O2) + target_compile_options(${LIB_NAME} PRIVATE -m64 -std=c++20 -march=skylake-avx512 -pthread -Wno-narrowing -Wextra -O2) + target_compile_options(${LIB_NAME14} PRIVATE -m64 -std=c++14 -march=skylake-avx512 -pthread -Wno-narrowing -Wextra -O2) elseif (MSVC)