CMake use Accelerate even if OpenMP is also used
For samples, make sure that OpenMP and Accelerate are not exclusive options on macOS
This commit is contained in:
parent
007ecf0c7c
commit
3588be16f3
1 changed files with 3 additions and 2 deletions
|
|
@ -23,11 +23,12 @@ find_package(OpenMP REQUIRED)
|
|||
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS})
|
||||
set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS})
|
||||
"""
|
||||
elif env["OS"] == "Darwin":
|
||||
localenv["cmake_extra"] = "find_library(ACCELERATE_FRAMEWORK Accelerate)"
|
||||
else:
|
||||
localenv['cmake_extra'] = ''
|
||||
|
||||
if env["OS"] == "Darwin":
|
||||
localenv["cmake_extra"] += "find_library(ACCELERATE_FRAMEWORK Accelerate)"
|
||||
|
||||
buildSample(localenv.Program, pjoin(subdir, name),
|
||||
mglob(localenv, subdir, *extensions),
|
||||
CPPPATH=['#include', env['boost_inc_dir']])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue