Selaa lähdekoodia

Align version/soversion CMake setup closer with other repositories.

PiperOrigin-RevId: 241432456
main
Victor Costan 5 vuotta sitten
committed by Victor Costan
vanhempi
commit
09fa8868db
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. +4
    -4
      CMakeLists.txt

+ 4
- 4
CMakeLists.txt Näytä tiedosto

@ -213,6 +213,10 @@ target_include_directories(leveldb
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
) )
set_target_properties(leveldb
PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
target_compile_definitions(leveldb target_compile_definitions(leveldb
PRIVATE PRIVATE
# Used by include/export.h when building shared libraries. # Used by include/export.h when building shared libraries.
@ -233,10 +237,6 @@ if(BUILD_SHARED_LIBS)
# Used by include/export.h. # Used by include/export.h.
LEVELDB_SHARED_LIBRARY LEVELDB_SHARED_LIBRARY
) )
set_target_properties(leveldb
PROPERTIES VERSION ${PROJECT_VERSION})
set_target_properties(leveldb
PROPERTIES SOVERSION 1)
endif(BUILD_SHARED_LIBS) endif(BUILD_SHARED_LIBS)
if(HAVE_CLANG_THREAD_SAFETY) if(HAVE_CLANG_THREAD_SAFETY)

Ladataan…
Peruuta
Tallenna