Explorar o código

Use ${CMAKE_OBJDUMP} in mbedTLS Finder

Hardcoding `objdump` causes portability problems
Sean DuBois %!s(int64=2) %!d(string=hai) anos
pai
achega
79ca317b01
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmake/Modules/FindMbedTLS.cmake

+ 1 - 1
cmake/Modules/FindMbedTLS.cmake

@@ -84,7 +84,7 @@ macro(MbedTLS_set_soname component)
     endif()
   elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux|FreeBSD")
     execute_process(
-      COMMAND sh -c "objdump -p '${Mbed${component}_LIBRARY}' | grep SONAME"
+      COMMAND sh -c "${CMAKE_OBJDUMP}  -p '${Mbed${component}_LIBRARY}' | grep SONAME"
       OUTPUT_VARIABLE _output
       RESULT_VARIABLE _result)