mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Set SOVERSION for kiapi
This commit is contained in:
parent
2b1f56ebc8
commit
6a203fb289
@ -99,6 +99,17 @@ endif()
|
|||||||
# Because CMake doesn't guess this from the .cc extension generated by protoc
|
# Because CMake doesn't guess this from the .cc extension generated by protoc
|
||||||
set_target_properties( kiapi PROPERTIES LINKER_LANGUAGE CXX )
|
set_target_properties( kiapi PROPERTIES LINKER_LANGUAGE CXX )
|
||||||
|
|
||||||
|
include( ${KICAD_CMAKE_MODULE_PATH}/KiCadVersion.cmake )
|
||||||
|
|
||||||
|
# Extract the major and minor build version as a string
|
||||||
|
string( REGEX MATCH
|
||||||
|
"([0-9]+)\\.([0-9]+)\\.([0-9]+)"
|
||||||
|
KICAD_MAJOR_MINOR_PATCH_VERSION
|
||||||
|
"${KICAD_VERSION}"
|
||||||
|
)
|
||||||
|
|
||||||
|
set_target_properties( kiapi PROPERTIES SOVERSION ${KICAD_MAJOR_MINOR_PATCH_VERSION} )
|
||||||
|
|
||||||
target_include_directories( kiapi SYSTEM PUBLIC ${Protobuf_INCLUDE_DIRS} )
|
target_include_directories( kiapi SYSTEM PUBLIC ${Protobuf_INCLUDE_DIRS} )
|
||||||
|
|
||||||
target_link_libraries( kiapi protobuf::libprotobuf )
|
target_link_libraries( kiapi protobuf::libprotobuf )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user