Commit 97a632b2 authored by Laurent Claustre's avatar Laurent Claustre

Merge branch 'add-set-library-soversion-macro' into 'master'

Add back limatools_set_library_soversion() macro for backward compatibility

See merge request !95
parents 4eb8829d c5858f0f
Pipeline #5991 passed with stages
in 12 minutes and 36 seconds
......@@ -22,6 +22,19 @@
# along with this program; if not, see <http://www.gnu.org/licenses/>.
############################################################################
# DEPRECATED: this function set the so vertsion according to
function(limatools_set_library_soversion lib_name version_file)
message(AUTHOR_WARNING "limatools_set_library_soversion is DEPRECATED: check the camera plugin template \
to update your CMakeFile to use git tags instead.")
file(STRINGS ${version_file} version)
# for lib version as 1.2.3 soverion is fixed to 1.2
string(REGEX MATCH "^([0-9]+)\\.([0-9]+)" soversion "${version}")
set_target_properties(${lib_name} PROPERTIES VERSION "${version}" SOVERSION "${soversion}")
endfunction()
# this function runs camera's c++ tests
function(limatools_run_camera_tests test_src camera)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment