Skip to content

Commit

Permalink
use CMAKE_CURRENT_LIST_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielNSD committed Oct 31, 2024
1 parent d3e252c commit 3efd9c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ if(APPLE)

# Include oneDNN directory and library
include_directories(${ONEDNN_ROOT}/include)

message(STATUS "CMAKE DIR: ${CMAKE_CURRENT_LIST_DIR}")
elseif(UNIX)
# find libdnnl.so
execute_process(
Expand Down Expand Up @@ -173,7 +175,7 @@ if(APPLE)
# COMMENT "Adjusting LC_LOAD_DYLIB path for libdnnl"
# )
add_custom_command(TARGET metaltranslate POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env EXTERNAL_INSTALL_LOCATION=${EXTERNAL_INSTALL_LOCATION} ONEDNN_ROOT=${ONEDNN_ROOT} ICU_LIBRARY_DIR=${ICU_LIBRARY_DIR} ./post_build_mac.sh $<TARGET_FILE_DIR:metaltranslate>
COMMAND ${CMAKE_COMMAND} -E env EXTERNAL_INSTALL_LOCATION=${EXTERNAL_INSTALL_LOCATION} ONEDNN_ROOT=${ONEDNN_ROOT} ICU_LIBRARY_DIR=${ICU_LIBRARY_DIR} ${CMAKE_CURRENT_LIST_DIR}/post_build_mac.sh $<TARGET_FILE_DIR:metaltranslate>
COMMENT "Running post-build script to adjust LC_LOAD_DYLIB paths and copy files"
)
elseif(UNIX)
Expand Down

0 comments on commit 3efd9c6

Please sign in to comment.