mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-06-23 04:17:34 +02:00
Enable architecture-specific optimization by default. Added option to turn it off.
This commit is contained in:
@@ -28,6 +28,15 @@ if(DISABLE_DENORMALS)
|
|||||||
add_definitions(-DDISABLE_DENORMALS)
|
add_definitions(-DDISABLE_DENORMALS)
|
||||||
endif (DISABLE_DENORMALS)
|
endif (DISABLE_DENORMALS)
|
||||||
|
|
||||||
|
if (CMAKE_SYSTEM_PROCESSOR MATCHES "(amd64)|(AMD64)")
|
||||||
|
option(USE_NATIVE_ARCH "Enable architecture-specific optimizations" ON)
|
||||||
|
|
||||||
|
if (USE_NATIVE_ARCH)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=x86-64-v3")
|
||||||
|
message("Enabling -march=x86-64-v3")
|
||||||
|
endif (USE_NATIVE_ARCH)
|
||||||
|
endif ()
|
||||||
|
|
||||||
target_compile_features(neural_amp_modeler PUBLIC cxx_std_17)
|
target_compile_features(neural_amp_modeler PUBLIC cxx_std_17)
|
||||||
|
|
||||||
set_target_properties(neural_amp_modeler
|
set_target_properties(neural_amp_modeler
|
||||||
|
|||||||
Reference in New Issue
Block a user