cmake/Tests/Plugin/check_mod_soname.cmake

8 lines
283 B
CMake
Raw Normal View History

2015-11-17 17:22:37 +01:00
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}")
2012-06-27 20:52:58 +03:00
else()
2015-11-17 17:22:37 +01:00
message(STATUS "${mod} has no soname as expected")
2012-06-27 20:52:58 +03:00
endif()