Browse Source

Use ${CMAKE_OBJDUMP} in mbedTLS Finder

Hardcoding `objdump` causes portability problems
Sean DuBois 2 years ago
parent
commit
79ca317b01
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmake/Modules/FindMbedTLS.cmake

+ 1 - 1
cmake/Modules/FindMbedTLS.cmake

@@ -84,7 +84,7 @@ macro(MbedTLS_set_soname component)
     endif()
     endif()
   elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux|FreeBSD")
   elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux|FreeBSD")
     execute_process(
     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
       OUTPUT_VARIABLE _output
       RESULT_VARIABLE _result)
       RESULT_VARIABLE _result)