Skip to content

Commit 12d050d

Browse files
committed
Remove extra TBB build
1 parent adaa1da commit 12d050d

2 files changed

Lines changed: 0 additions & 28 deletions

File tree

3rdparty/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
11
add_subdirectory(googletest)
2-
3-
file(MAKE_DIRECTORY "${CMAKE_SOURCE_DIR}/3rdparty/TBB/build")
4-
5-
execute_process(
6-
COMMAND ${CMAKE_COMMAND} -S "${CMAKE_SOURCE_DIR}/3rdparty/TBB" -B "${CMAKE_SOURCE_DIR}/3rdparty/TBB/build" -DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER} -DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DTBB_OUTPUT_DIR_BASE=tbb
7-
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/3rdparty/TBB/build"
8-
)
9-
execute_process(
10-
COMMAND ${CMAKE_COMMAND} --build "${CMAKE_SOURCE_DIR}/3rdparty/TBB/build" --config "${CMAKE_BUILD_TYPE}"
11-
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/3rdparty/TBB/build"
12-
)
13-
142
option(TBB_TEST OFF)
153
add_subdirectory(TBB)

src/layers/CMakeLists.txt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
11
file(GLOB_RECURSE layers_src *.cpp)
22
add_library(layers_lib STATIC "${LAYERS_HEADERS}" "${layers_src}")
33
target_link_libraries(layers_lib PUBLIC TBB::tbb)
4-
if (WIN32)
5-
if (CMAKE_BUILD_TYPE)
6-
string(TOLOWER ${CMAKE_BUILD_TYPE} lower_build)
7-
file(GLOB_RECURSE tbb_files "${CMAKE_SOURCE_DIR}/3rdparty/TBB/build/tbb_${lower_build}/tbb*")
8-
add_custom_command(TARGET layers_lib POST_BUILD
9-
COMMAND ${CMAKE_COMMAND} -E copy
10-
${tbb_files}
11-
"${CMAKE_BINARY_DIR}/bin/")
12-
else()
13-
file(GLOB_RECURSE tbb_files "${CMAKE_SOURCE_DIR}/3rdparty/TBB/build/tbb_debug/tbb*")
14-
add_custom_command(TARGET layers_lib POST_BUILD
15-
COMMAND ${CMAKE_COMMAND} -E copy
16-
${tbb_files}
17-
"${CMAKE_BINARY_DIR}/bin/")
18-
endif()
19-
endif()

0 commit comments

Comments
 (0)