File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ cmake_minimum_required(VERSION 3.31)
1616project (qsim)
1717
1818IF (WIN32 )
19- set (CMAKE_CXX_FLAGS "/arch:AVX2" )
19+ add_compile_options (CMAKE_CXX_FLAGS "/arch:AVX2" )
2020ELSE ()
21- set (CMAKE_CXX_FLAGS "-mavx2 -mfma" )
21+ add_compile_options (CMAKE_CXX_FLAGS "-mavx2 -mfma" )
2222ENDIF ()
2323
2424INCLUDE (../GetPybind11.cmake)
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ cmake_minimum_required(VERSION 3.31)
1616project (qsim)
1717
1818IF (WIN32 )
19- set (CMAKE_CXX_FLAGS "/arch:AVX512" )
19+ add_compile_options (CMAKE_CXX_FLAGS "/arch:AVX512" )
2020ELSE ()
21- set (CMAKE_CXX_FLAGS "-mavx512f -mbmi2" )
21+ add_compile_options (CMAKE_CXX_FLAGS "-mavx512f -mbmi2" )
2222ENDIF ()
2323
2424INCLUDE (../GetPybind11.cmake)
You can’t perform that action at this time.
0 commit comments