mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
CMake: Don't use (SO)VERSION for modules
This commit is contained in:
parent
cfd603bb8d
commit
1401a1cc48
@ -1,6 +1,9 @@
|
|||||||
function(add_library target_name)
|
function(add_library target_name)
|
||||||
_add_library("${target_name}" ${ARGN})
|
_add_library("${target_name}" ${ARGN})
|
||||||
|
get_target_property(type "${target_name}" TYPE)
|
||||||
|
if(type STREQUAL "SHARED_LIBRARY")
|
||||||
set_target_properties("${target_name}" PROPERTIES
|
set_target_properties("${target_name}" PROPERTIES
|
||||||
VERSION "${PROJECT_VERSION}"
|
VERSION "${PROJECT_VERSION}"
|
||||||
SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
|
||||||
|
endif()
|
||||||
endfunction(add_library)
|
endfunction(add_library)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user