File tree Expand file tree Collapse file tree 8 files changed +16
-17
lines changed Expand file tree Collapse file tree 8 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ project(qsim)
1717
1818if (WIN32 )
1919 add_compile_options (/arch:AVX2 /openmp)
20- # Only apply /O2 if the configuration is RELEASE .
20+ # Add /O2 to any configuration that is NOT Debug .
2121 # This prevents a conflict with /RTC1 in DEBUG builds.
22- add_compile_options ($<$<CONFIG:RELEASE >:/O2>)
22+ add_compile_options ($<$<NOT :$< CONFIG:Debug> >:/O2>)
2323else ()
2424 add_compile_options (-mavx2 -mfma -O3 -flto=auto)
2525endif ()
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ project(qsim)
1717
1818if (WIN32 )
1919 add_compile_options (/arch:AVX512 /openmp)
20- # Only apply /O2 if the configuration is RELEASE .
20+ # Add /O2 to any configuration that is NOT Debug .
2121 # This prevents a conflict with /RTC1 in DEBUG builds.
22- add_compile_options ($<$<CONFIG:RELEASE >:/O2>)
22+ add_compile_options ($<$<NOT :$< CONFIG:Debug> >:/O2>)
2323else ()
2424 add_compile_options (-mavx512f -mbmi2 -O3 -flto=auto)
2525endif ()
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ project(qsim)
1717
1818if (WIN32 )
1919 add_compile_options (/openmp)
20- # Only apply /O2 if the configuration is RELEASE .
20+ # Add /O2 to any configuration that is NOT Debug .
2121 # This prevents a conflict with /RTC1 in DEBUG builds.
22- add_compile_options ($<$<CONFIG:RELEASE >:/O2>)
22+ add_compile_options ($<$<NOT :$< CONFIG:Debug> >:/O2>)
2323else ()
2424 add_compile_options (-O3 -flto=auto)
2525endif ()
Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ project(qsim LANGUAGES CXX CUDA)
1818if (WIN32 )
1919 # Always apply AVX2 and openmp on Windows
2020 add_compile_options (/openmp)
21-
22- # Only apply /O2 if the configuration is RELEASE.
21+ # Add /O2 to any configuration that is NOT Debug.
2322 # This prevents a conflict with /RTC1 in DEBUG builds.
24- add_compile_options ($<$<CONFIG:RELEASE >:/O2>)
23+ add_compile_options ($<$<NOT :$< CONFIG:Debug> >:/O2>)
2524else ()
2625 add_compile_options (-O3 -flto=auto)
2726endif ()
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ project(qsim LANGUAGES CXX CUDA)
1717
1818if (WIN32 )
1919 add_compile_options (/openmp)
20- # Only apply /O2 if the configuration is RELEASE .
20+ # Add /O2 to any configuration that is NOT Debug .
2121 # This prevents a conflict with /RTC1 in DEBUG builds.
22- add_compile_options ($<$<CONFIG:RELEASE >:/O2>)
22+ add_compile_options ($<$<NOT :$< CONFIG:Debug> >:/O2>)
2323else ()
2424 add_compile_options (-O3 -flto=auto)
2525endif ()
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ check_language(CUDA)
2020
2121if (WIN32 )
2222 add_compile_options (/openmp)
23- # Only apply /O2 if the configuration is RELEASE .
23+ # Add /O2 to any configuration that is NOT Debug .
2424 # This prevents a conflict with /RTC1 in DEBUG builds.
25- add_compile_options ($<$<CONFIG:RELEASE >:/O2>)
25+ add_compile_options ($<$<NOT :$< CONFIG:Debug> >:/O2>)
2626else ()
2727 add_compile_options (-O3 -flto=auto)
2828endif ()
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ project(qsim LANGUAGES CXX HIP)
1717
1818if (WIN32 )
1919 add_compile_options (/openmp)
20- # Only apply /O2 if the configuration is RELEASE .
20+ # Add /O2 to any configuration that is NOT Debug .
2121 # This prevents a conflict with /RTC1 in DEBUG builds.
22- add_compile_options ($<$<CONFIG:RELEASE >:/O2>)
22+ add_compile_options ($<$<NOT :$< CONFIG:Debug> >:/O2>)
2323else ()
2424 add_compile_options (-O3 -flto=auto)
2525endif ()
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ project(qsim)
1717
1818if (WIN32 )
1919 add_compile_options (/openmp)
20- # Only apply /O2 if the configuration is RELEASE .
20+ # Add /O2 to any configuration that is NOT Debug .
2121 # This prevents a conflict with /RTC1 in DEBUG builds.
22- add_compile_options ($<$<CONFIG:RELEASE >:/O2>)
22+ add_compile_options ($<$<NOT :$< CONFIG:Debug> >:/O2>)
2323else ()
2424 add_compile_options (-msse4.1 -O3 -flto=auto)
2525endif ()
You can’t perform that action at this time.
0 commit comments