Skip to content

Commit

Permalink
Merge pull request #259 from fixstars/fix/macos-halide-symbolink
Browse files Browse the repository at this point in the history
Fix broken Symlink  on macos
  • Loading branch information
iitaku authored Apr 2, 2024
2 parents 2a74147 + 464ef0f commit 5595452
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ if(UNIX)
# On unix-like system, create include unversioned symlink
# NOTE: RELEASE/DEBUG doesn't matter for the naming
get_target_property(HALIDE_SONAME Halide::Halide IMPORTED_SONAME_RELEASE)
if(APPLE)
string(REPLACE "@rpath/" "" HALIDE_SONAME ${HALIDE_SONAME})
endif()
set(HALIDE_SYMFILE ${CMAKE_BINARY_DIR}/libHalide${CMAKE_SHARED_LIBRARY_SUFFIX})
file(CREATE_LINK ${HALIDE_SONAME} ${HALIDE_SYMFILE} SYMBOLIC)
install(FILES ${HALIDE_SYMFILE} DESTINATION lib)
Expand Down

0 comments on commit 5595452

Please sign in to comment.