Skip to content

Commit dc01a88

Browse files
Rtoaxviktormalik
authored andcommitted
Remove useless ELF_GETSHDRSTRNDX test
1 parent 4ac1e34 commit dc01a88

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

cmake/FindLibElf.cmake

+1-12
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,4 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibElf "Please install the libelf development
4343
LIBELF_LIBRARIES
4444
LIBELF_INCLUDE_DIRS)
4545

46-
SET(CMAKE_REQUIRED_LIBRARIES elf)
47-
INCLUDE(CheckCXXSourceCompiles)
48-
CHECK_CXX_SOURCE_COMPILES("#include <libelf.h>
49-
int main() {
50-
Elf *e = (Elf*)0;
51-
size_t sz;
52-
elf_getshdrstrndx(e, &sz);
53-
return 0;
54-
}" ELF_GETSHDRSTRNDX)
55-
SET(CMAKE_REQUIRED_LIBRARIES)
56-
57-
mark_as_advanced(LIBELF_INCLUDE_DIRS LIBELF_LIBRARIES ELF_GETSHDRSTRNDX)
46+
mark_as_advanced(LIBELF_INCLUDE_DIRS LIBELF_LIBRARIES)

0 commit comments

Comments
 (0)