check_mod_soname.cmake 283 B

1234567
  1. execute_process(COMMAND ${readelf} -d ${mod} OUTPUT_FILE ${mod}.readelf.txt)
  2. file(STRINGS ${mod}.readelf.txt soname REGEX "SONAME")
  3. if(soname)
  4. message(FATAL_ERROR "${mod} has soname but should not:\n ${soname}")
  5. else()
  6. message(STATUS "${mod} has no soname as expected")
  7. endif()