Skip to content

Commit

Permalink
Download libs in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu committed Nov 14, 2017
1 parent ea36a82 commit cbfddd2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cmake/TaichiCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ endif ()

if (NOT WIN32)
target_link_libraries(${CORE_LIBRARY_NAME} pthread stdc++)
target_link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libembree.so.2)
target_link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libtbb.so.2)
target_link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libtbbmalloc.so.2)
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/external/lib)
else()
execute_process(COMMAND git clone https://github.com/yuanming-hu/taichi_runtime ${CMAKE_CURRENT_SOURCE_DIR}/external/lib)
endif()
target_link_libraries(${CORE_LIBRARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libembree.so.2)
target_link_libraries(${CORE_LIBRARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libtbb.so.2)
target_link_libraries(${CORE_LIBRARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libtbbmalloc.so.2)
endif ()
if (MINGW)
target_link_libraries(${CORE_LIBRARY_NAME} ws2_32)
Expand Down

0 comments on commit cbfddd2

Please sign in to comment.