From 3994b7f4f0489e95c79f4103f0a0cc5ef9e0fde2 Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Fri, 20 Aug 2021 13:01:21 -0700 Subject: [PATCH] Fixing bfd install step mistake --- cmake/Modules/FindBFD.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/FindBFD.cmake b/cmake/Modules/FindBFD.cmake index 739d48b4..aff6928f 100644 --- a/cmake/Modules/FindBFD.cmake +++ b/cmake/Modules/FindBFD.cmake @@ -67,8 +67,9 @@ if((APEX_BUILD_BFD OR (NOT BFD_FOUND)) AND NOT APPLE) ) ExternalProject_Add_Step(project_binutils basedirs2 DEPENDEES install - COMMAND cp /include/demangle.h ${CMAKE_INSTALL_PREFIX}/binutils/include/. - COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}/binutils/lib ${CMAKE_INSTALL_PREFIX}/binutils/lib64 + if(NOT EXISTS ${CMAKE_INSTALL_PREFIX}/binutils/lib64) + COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_INSTALL_PREFIX}/binutils/lib ${CMAKE_INSTALL_PREFIX}/binutils/lib64 + endif() COMMENT "Adding lib64 simlink" )