Skip to content

Commit

Permalink
CMakeLists.txt: Fix format
Browse files Browse the repository at this point in the history
Signed-off-by: Rong Tao <[email protected]>
  • Loading branch information
Rtoax committed Jun 12, 2024
1 parent 5662aed commit 8d2b9f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ message(STATUS "=== FOUND libelf")
endif()

set(UTILS_FLAGS)
set(TESTS_FLAGS)

if(ELFUTILS_INCLUDE_DIRS)
set(UTILS_FLAGS "${UTILS_FLAGS}" HAVE_ELFUTILS_DEVEL)
endif()
Expand Down Expand Up @@ -124,12 +126,8 @@ set(UTILS_FLAGS "${UTILS_FLAGS}" ULPATCH_FTRACE_OBJ_PATH="${ULPATCH_SHARE_DIR}${
# macro ULPATCH_HELLO_OBJ_PATH="/usr/share/ulpatch/hello.obj" for example
set(UTILS_FLAGS "${UTILS_FLAGS}" ULPATCH_HELLO_OBJ_PATH="${ULPATCH_SHARE_DIR}${ULPATCH_HELLO_OBJ}")


set(TESTS_FLAGS)

add_subdirectory(src)


# install targets
if (BUILD_ULFTRACE)
install(TARGETS ulftrace RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
Expand Down
7 changes: 2 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-2024 Rong Tao <[email protected]>
#
add_subdirectory(utils)
add_subdirectory(arch)
add_subdirectory(elf)
add_subdirectory(patch)
add_subdirectory(arch)

# No need right now
#find_package(PkgConfig REQUIRED)
add_subdirectory(utils)

include_directories(.)

Expand Down

0 comments on commit 8d2b9f7

Please sign in to comment.