Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a shell task, rename x.y.z_release to tbb_release, to fix issue 4 #5

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions vendor/tbb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,23 @@ ExternalProject_Add(tbb
INSTALL_COMMAND ""
)


set(RENAMETBB "rename.x.y.z_release.to.tbb_release")
add_custom_command(OUTPUT ${RENAMETBB}
COMMAND echo "I move "
COMMAND ls ${CMAKE_CURRENT_BINARY_DIR}/src/tbb/build | grep _release
COMMAND rm ${CMAKE_CURRENT_BINARY_DIR}/src/tbb/build/tbb_release -rf
COMMAND mv ${CMAKE_CURRENT_BINARY_DIR}/src/tbb/build/*_release ${CMAKE_CURRENT_BINARY_DIR}/src/tbb/build/tbb_release
COMMAND echo to
COMMAND ls ${CMAKE_CURRENT_BINARY_DIR}/src/tbb/build | grep _release
COMMENT "rename tbb build dir see @issue https://github.com/ucbrise/anna/issues/4"
)
add_custom_target(T1 ALL DEPENDS ${RENAMETBB})

set(TBB_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/src/tbb/include PARENT_SCOPE)
set(TBB_LINK_DIRS
${CMAKE_CURRENT_BINARY_DIR}/src/tbb/build/linux_intel64_clang_cc4.8_libc2.19_kernel3.13.0_release
${CMAKE_CURRENT_BINARY_DIR}/src/tbb/build/tbb_release
PARENT_SCOPE)
set(TBB_LIBRARIES
${CMAKE_CURRENT_BINARY_DIR}/src/tbb/build/linux_intel64_clang_cc4.8_libc2.19_kernel3.13.0_release/libtbb.so
${CMAKE_CURRENT_BINARY_DIR}/src/tbb/build/tbb_release/libtbb.so
PARENT_SCOPE)