From 09fa8868dbe0cb2701f0560c59ebb63cc17f1271 Mon Sep 17 00:00:00 2001 From: Victor Costan Date: Mon, 1 Apr 2019 17:17:47 -0700 Subject: [PATCH] Align version/soversion CMake setup closer with other repositories. PiperOrigin-RevId: 241432456 --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ceb5dd9..d50f6c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -213,6 +213,10 @@ target_include_directories(leveldb $ $ ) + +set_target_properties(leveldb + PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) + target_compile_definitions(leveldb PRIVATE # Used by include/export.h when building shared libraries. @@ -233,10 +237,6 @@ if(BUILD_SHARED_LIBS) # Used by include/export.h. LEVELDB_SHARED_LIBRARY ) - set_target_properties(leveldb - PROPERTIES VERSION ${PROJECT_VERSION}) - set_target_properties(leveldb - PROPERTIES SOVERSION 1) endif(BUILD_SHARED_LIBS) if(HAVE_CLANG_THREAD_SAFETY)