mirror of
https://github.com/azahar-emu/soundtouch
synced 2025-11-07 15:40:04 +01:00
CMake: Add option for OpenMP
Make support for OpenMP optional (disabled by default)
This commit is contained in:
parent
afb0e4a73f
commit
572d12c3e9
@ -71,6 +71,12 @@ if(${NEON} AND ${NEON_CPU})
|
||||
target_compile_options(SoundTouch PRIVATE -mfpu=neon)
|
||||
endif()
|
||||
|
||||
find_package(OpenMP)
|
||||
option(OPENMP "Use parallel multicore calculation through OpenMP" OFF)
|
||||
if(OPENMP AND OPENMP_FOUND)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||||
endif()
|
||||
|
||||
install(
|
||||
FILES
|
||||
include/BPMDetect.h
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user