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

Getting benefits of using CMake builder for redhat based systems. #224

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/${PROCDUMP_COMPRESS_MAN}
DEPENDS "${CMAKE_SOURCE_DIR}/procdump.1"
)

install(FILES ${PROJECT_BINARY_DIR}/${PROCDUMP_COMPRESS_MAN}
DESTINATION "/usr/share/man/man1/"
)

#
# Change log
#
Expand Down Expand Up @@ -289,4 +293,8 @@ add_custom_command(OUTPUT procdump_ebpf.o
DEPENDS ${procdump_ebpf_SOURCE_DIR}/procdump_ebpf.c
)

set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES procdump.ebpf.o)
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES procdump.ebpf.o)

install(TARGETS procdump
DESTINATION ${CMAKE_INSTALL_BINDIR}
)
6 changes: 3 additions & 3 deletions dist/procdump.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ general process dump utility that you can embed in other scripts.


%build
# The makefile doesn't like %%make_build (parallel make)
make CFLAGS="%{optflags}"
%cmake
%cmake_build


%install
%make_install
%cmake_install


%files
Expand Down