summaryrefslogtreecommitdiff
path: root/Tests/Plugin/check_mod_soname.cmake
blob: eeededa6a6268d247551872439a73c978506182c (plain)
1
2
3
4
5
6
7
execute_process(COMMAND ${readelf} -d ${mod} OUTPUT_FILE ${mod}.readelf.txt)
file(STRINGS ${mod}.readelf.txt soname REGEX "SONAME")
if(soname)
  message(FATAL_ERROR "${mod} has soname but should not:\n  ${soname}")
else()
  message(STATUS "${mod} has no soname as expected")
endif()