Skip to content

Commit

Permalink
chore(cmake): minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie-Cui committed Dec 19, 2024
1 parent a6e18cd commit c0aff1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,6 @@ target_link_libraries(yacl PUBLIC
# ExtLibtommath::libtommath
# ExtFourQ::fourq
)

# HACK for header only libraries, we need manually add dependencies
add_dependencies(yacl spdlog)
3 changes: 2 additions & 1 deletion cmake/abseil.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ ExternalProject_Add(abseil
add_library(libabseil SHARED IMPORTED)
set_property(
TARGET libabseil PROPERTY
IMPORTED_LOCATION ${CMAKE_THIRDPARTY_LIBDIR}/libabseil_dll.dylib)
IMPORTED_LOCATION ${CMAKE_THIRDPARTY_LIBDIR}/libabseil_dll${CMAKE_SHARED_LIBRARY_SUFFIX})

add_dependencies(libabseil abseil)

add_library(External::absl ALIAS libabseil)

0 comments on commit c0aff1e

Please sign in to comment.