Skip to content

Commit 79ca317

Browse files
committed
Use ${CMAKE_OBJDUMP} in mbedTLS Finder
Hardcoding `objdump` causes portability problems
1 parent 0abde70 commit 79ca317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Modules/FindMbedTLS.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ macro(MbedTLS_set_soname component)
8484
endif()
8585
elseif(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux|FreeBSD")
8686
execute_process(
87-
COMMAND sh -c "objdump -p '${Mbed${component}_LIBRARY}' | grep SONAME"
87+
COMMAND sh -c "${CMAKE_OBJDUMP} -p '${Mbed${component}_LIBRARY}' | grep SONAME"
8888
OUTPUT_VARIABLE _output
8989
RESULT_VARIABLE _result)
9090

0 commit comments

Comments
 (0)