mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-06 19:50:11 +02:00
detect clang properly even if it is running under MSVC
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
if (MSVC)
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
"$<$<CONFIG:DEBUG>:/W4>"
|
"$<$<CONFIG:DEBUG>:/W4>"
|
||||||
"$<$<CONFIG:RELEASE>:/O2>"
|
"$<$<CONFIG:RELEASE>:/O2>"
|
||||||
@@ -18,7 +18,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "(amd64)|(AMD64)|(x86_64)")
|
|||||||
option(USE_NATIVE_ARCH "Enable architecture-specific optimizations" OFF)
|
option(USE_NATIVE_ARCH "Enable architecture-specific optimizations" OFF)
|
||||||
|
|
||||||
if (USE_NATIVE_ARCH)
|
if (USE_NATIVE_ARCH)
|
||||||
if (MSVC)
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
add_compile_options(/arch:AVX2)
|
add_compile_options(/arch:AVX2)
|
||||||
message(STATUS "Enabling /arch:AVX2")
|
message(STATUS "Enabling /arch:AVX2")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user