Skip to content

Commit

Permalink
enable preview feature
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Feb 22, 2021
1 parent cc7078a commit 6730c46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tbb.spec
Expand Up @@ -11,7 +11,7 @@ BuildRequires: cmake

%build

make %{makeprocesses} stdver=c++17
make %{makeprocesses} stdver=c++17 tbb_cpf=1

%install
install -d %i/lib
Expand All @@ -21,4 +21,9 @@ case %cmsplatf in
*) SONAME=so ;;
esac
find build -name "*.$SONAME*" -exec cp {} %i/lib \;
for slib in $(find %i/lib -name "libtbb_preview.*") ; do
dlib=$(echo $slib | sed 's|_preview||')
mv $slib $dlib
done
sed -i -e 's|tbb_preview|tbb|' %{i}/lib/libtbb.so
cmake -DINSTALL_DIR=%{i}/cmake/TBB -DSYSTEM_NAME=Linux -DINC_PATH=%{i}/include -DLIB_PATH=%{i}/lib -P cmake/tbb_config_installer.cmake

0 comments on commit 6730c46

Please sign in to comment.