mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[cmake] split versioning
* WITH_LIBRARY_VERSIONING appends the major version to the name * WITH_LIBRARY_SOVERSIONING enables SOVERSION on platforms supporting it
This commit is contained in:
@@ -76,7 +76,7 @@ macro(AddTargetWithResourceFile nameAndTarget is_exe version sources)
|
||||
message("add_library(${target}) [${lib_options}]")
|
||||
add_library(${target} ${lib_options} ${${sources}})
|
||||
|
||||
if(VERSIONING)
|
||||
if(WITH_LIBRARY_SOVERSIONING)
|
||||
set_target_properties(${target} PROPERTIES VERSION ${version} SOVERSION ${RC_VERSION_MAJOR})
|
||||
else()
|
||||
set_target_properties(${target} PROPERTIES PREFIX "")
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
option(CMAKE_COLOR_MAKEFILE "colorful CMake makefile" ON)
|
||||
option(CMAKE_VERBOSE_MAKEFILE "verbose CMake makefile" ON)
|
||||
option(CMAKE_POSITION_INDEPENDENT_CODE "build with position independent code (-fPIC or -fPIE)" ON)
|
||||
option(WITH_LIBRARY_VERSIONING "Use library version triplet" ON)
|
||||
option(WITH_LIBRARY_VERSIONING "Append library major version to name" ON)
|
||||
option(WITH_LIBRARY_SOVERSIONING "Use library SO version triplet" ON)
|
||||
option(WITH_BINARY_VERSIONING "Use binary versioning" OFF)
|
||||
option(WITH_RESOURCE_VERSIONING "Use resource versioning" OFF)
|
||||
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||
|
||||
Reference in New Issue
Block a user