Changeset View
Changeset View
Standalone View
Standalone View
cmake/modules/InstallationHelper.cmake
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||||
list(APPEND _properties VERSION "${bitcoin-abc_VERSION_MAJOR}.0.0") | list(APPEND _properties VERSION "${bitcoin-abc_VERSION_MAJOR}.0.0") | ||||
else() | else() | ||||
list(APPEND _properties VERSION "${bitcoin-abc_VERSION_MAJOR}") | list(APPEND _properties VERSION "${bitcoin-abc_VERSION_MAJOR}") | ||||
endif() | endif() | ||||
# For autotools compatibility, rename the library to ${OUTPUT_NAME}-0.dll | # For autotools compatibility, rename the library to ${OUTPUT_NAME}-0.dll | ||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
list(APPEND _properties OUTPUT_NAME "${NAME}-${bitcoin-abc_VERSION_MAJOR}") | list(APPEND _properties OUTPUT_NAME "${NAME}-${bitcoin-abc_VERSION_MAJOR}") | ||||
# DLL_EXPORT is defined by libtool, and is expected by some sources. | |||||
target_compile_definitions(${_shared_name} PRIVATE DLL_EXPORT) | |||||
else() | else() | ||||
list(APPEND _properties OUTPUT_NAME "${NAME}") | list(APPEND _properties OUTPUT_NAME "${NAME}") | ||||
endif() | endif() | ||||
list(APPEND _properties SOVERSION "${bitcoin-abc_VERSION_MAJOR}") | list(APPEND _properties SOVERSION "${bitcoin-abc_VERSION_MAJOR}") | ||||
set_target_properties(${_shared_name} PROPERTIES ${_properties}) | set_target_properties(${_shared_name} PROPERTIES ${_properties}) | ||||
install_target(${_shared_name}) | install_target(${_shared_name}) | ||||
endfunction() | endfunction() |