diff --git a/CMake/UseSlicer.cmake.in b/CMake/UseSlicer.cmake.in index ee53e69a420..f80bd6884c4 100644 --- a/CMake/UseSlicer.cmake.in +++ b/CMake/UseSlicer.cmake.in @@ -304,7 +304,10 @@ if(APPLE) set(Slicer_BUNDLE_EXTENSIONS_LOCATION "${Slicer_EXTENSIONS_DIRBASENAME}-${Slicer_REVISION}/${EXTENSION_NAME}/") set(CMAKE_INSTALL_NAME_TOOL "" CACHE FILEPATH "" FORCE) - mark_as_superbuild(VARS CMAKE_INSTALL_NAME_TOOL:FILEPATH ALL_PROJECTS) + # Due to the possibility of external projects (e.g., LibFFI) enabling languages (e.g., ASM) + # that necessitate `install_name_tool` via the "CMakeFindBinUtils" module, we opt to clear + # CMAKE_INSTALL_NAME_TOOL on a per-project basis. + # mark_as_superbuild(VARS CMAKE_INSTALL_NAME_TOOL:FILEPATH ALL_PROJECTS) set(CMAKE_MACOSX_RPATH 0 CACHE BOOL "" FORCE) mark_as_superbuild(VARS CMAKE_MACOSX_RPATH:BOOL ALL_PROJECTS) diff --git a/CMakeLists.txt b/CMakeLists.txt index 893f31c76b4..0091c35e2a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,10 @@ if(APPLE) ) set(CMAKE_INSTALL_NAME_TOOL "" CACHE FILEPATH "" FORCE) - mark_as_superbuild(VARS CMAKE_INSTALL_NAME_TOOL:FILEPATH ALL_PROJECTS) + # Due to the possibility of external projects (e.g., LibFFI) enabling languages (e.g., ASM) + # that necessitate `install_name_tool` via the "CMakeFindBinUtils" module, we opt to clear + # CMAKE_INSTALL_NAME_TOOL on a per-project basis. + # mark_as_superbuild(VARS CMAKE_INSTALL_NAME_TOOL:FILEPATH ALL_PROJECTS) set(CMAKE_MACOSX_RPATH 0) mark_as_superbuild(VARS CMAKE_MACOSX_RPATH:BOOL ALL_PROJECTS)