Skip to content

Commit

Permalink
Enable stripping of bundle by default
Browse files Browse the repository at this point in the history
- previously, the installed files for the *make bundle* target haven't
  been stripped - now thats the default
- using the flag EVEREST_CMAKE_DISABLE_STRIPPING_BUNDLE, stripping of
  the files for the bundle target can be disabled

Signed-off-by: aw <[email protected]>
  • Loading branch information
a-w50 committed Nov 22, 2023
1 parent 329f8db commit 089c1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundling.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")

# bundling
# FIXME (aw): in case of dist folder, we could only clean up the dist folder
# FIXME (aw): we need add stripping

add_custom_target(bundle
COMMAND "${CMAKE_COMMAND}" -E remove_directory ${CMAKE_BINARY_DIR}/bundle
COMMAND "${CMAKE_COMMAND}" --build "${CMAKE_BINARY_DIR}"
COMMAND "${CMAKE_COMMAND}"
-E env DESTDIR=bundle
"${CMAKE_COMMAND}" --install "${CMAKE_BINARY_DIR}"
$<$<NOT:$<BOOL:${EVEREST_CMAKE_DISABLE_STRIPPING_BUNDLE}>>:--strip>
COMMAND rm -rf
bundle/${CMAKE_INSTALL_PREFIX}/include
bundle/${CMAKE_INSTALL_PREFIX}/lib/cmake
Expand Down

0 comments on commit 089c1da

Please sign in to comment.