Skip to content

Commit

Permalink
Add a possibility not to strip binaries (@hroncok)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinweismann committed Feb 24, 2023
1 parent 4289489 commit 1c5598b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ option(USE_INCLUDED_LIBZIP "Use included libzip" ON)
option(USE_INCLUDED_GTEST "Used included gtest" ON)
option(USE_INCLUDED_SSL "Use included libressl" ON)
option(BUILD_FOR_CODECOVERAGE "Build for code coverage analysis" OFF)
option(STRIP_BINARIES "Strip binaries (on non-apple)" ON)

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using GCC
Expand Down Expand Up @@ -157,7 +158,7 @@ if (UNIX OR MINGW)
# Uncomment the following to put the version info into the .so-file.
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION "${LIB3MF_VERSION_MAJOR}.${LIB3MF_VERSION_MINOR}.${LIB3MF_VERSION_MICRO}.${BUILD_NUMBER}")
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION "${LIB3MF_VERSION_MAJOR}")
if (NOT APPLE)
if (STRIP_BINARIES AND NOT APPLE)
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS -s)
endif()
else()
Expand Down

0 comments on commit 1c5598b

Please sign in to comment.