From 3efd9c6bce94183b92c5214b9dc78aa557756235 Mon Sep 17 00:00:00 2001 From: Gabriel Dantas Date: Thu, 31 Oct 2024 13:10:06 -0300 Subject: [PATCH] use CMAKE_CURRENT_LIST_DIR --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f30cf9..270460f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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( @@ -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 $ + 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 $ COMMENT "Running post-build script to adjust LC_LOAD_DYLIB paths and copy files" ) elseif(UNIX)