fix soversion

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter
2025-12-21 13:52:06 -05:00
parent 5f75aceace
commit d8656da2fa
2 changed files with 10 additions and 0 deletions

View File

@@ -3,6 +3,12 @@
cmake_minimum_required(VERSION 3.12)
set(dynarmic_VERSION_MAJOR 7)
set(dynarmic_VERSION_MINOR 0)
set(dynarmic_VERSION_PATCH 0)
set(dynarmic_VERSION ${dynarmic_VERSION_MAJOR}.${dynarmic_VERSION_MINOR}.${dynarmic_VERSION_PATCH})
# Determine if we're built as a subproject (using add_subdirectory)
# or if this is the master project.
set(MASTER_PROJECT OFF)

View File

@@ -351,6 +351,10 @@ target_include_directories(dynarmic PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
set_target_properties(dynarmic PROPERTIES
VERSION ${dynarmic_VERSION}
SOVERSION ${dynarmic_VERSION_MAJOR}.${dynarmic_VERSION_MINOR}
)
if (TARGET unordered_dense::unordered_dense)
# weird quirk of system installs