We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4144b9 commit 994a68cCopy full SHA for 994a68c
src/CMakeLists.txt
@@ -1,4 +1,4 @@
1
-if (MSVC)
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
2
add_compile_options(
3
"$<$<CONFIG:DEBUG>:/W4>"
4
"$<$<CONFIG:RELEASE>:/O2>"
@@ -18,7 +18,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(amd64)|(AMD64)|(x86_64)")
18
option(USE_NATIVE_ARCH "Enable architecture-specific optimizations" OFF)
19
20
if (USE_NATIVE_ARCH)
21
- if (MSVC)
22
add_compile_options(/arch:AVX2)
23
message(STATUS "Enabling /arch:AVX2")
24
0 commit comments