Browse Source

Merge pull request #889 from Sean-Der/master

Use ${CMAKE_OBJDUMP} in mbedTLS Finder
Paul-Louis Ageneau 2 years ago
parent
commit
8679ca4714
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()
   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)