Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds OPENSSL_BUILD_WITH_INSTALL_NAMES option #15

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ cmake_minimum_required( VERSION 3.1.0 )

set( CMAKE_DISABLE_SOURCE_CHANGES ON )
set( CMAKE_DISABLE_IN_SOURCE_BUILD ON )
option( OPENSSL_BUILD_WITH_INSTALL_NAMES "Build libraries with unadorned names" OFF )

set( CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" )

Expand Down
5 changes: 5 additions & 0 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ if( MSVC )
endif()
endif()


if (OPENSSL_BUILD_WITH_INSTALL_NAMES)
set_target_properties( crypto PROPERTIES OUTPUT_NAME "crypto" )
endif()

install( TARGETS crypto
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
Expand Down
4 changes: 4 additions & 0 deletions ssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ if( MSVC )
endif()
endif()

if (OPENSSL_BUILD_WITH_INSTALL_NAMES)
set_target_properties( ssl PROPERTIES OUTPUT_NAME "ssl" )
endif()

install( TARGETS ssl
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
Expand Down