Skip to content

Commit 88ee680

Browse files
committed
cmake: Delete check_cxx_source_links_with_flags macro
1 parent 09e8fd2 commit 88ee680

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ target_link_options(sanitize_interface INTERFACE ${SANITIZER_LDFLAGS})
387387

388388
if(BUILD_FUZZ_BINARY)
389389
include(CheckSourceCompilesAndLinks)
390-
check_cxx_source_links_with_flags("${SANITIZER_LDFLAGS}" "
390+
check_cxx_source_compiles_with_flags("${SANITIZER_LDFLAGS}" "
391391
#include <cstdint>
392392
#include <cstddef>
393393
extern \"C\" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { return 0; }

cmake/module/CheckSourceCompilesAndLinks.cmake

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ macro(check_cxx_source_compiles_with_flags flags source)
1414
cmake_pop_check_state()
1515
endmacro()
1616

17-
macro(check_cxx_source_links_with_flags flags source)
18-
cmake_push_check_state(RESET)
19-
set(CMAKE_REQUIRED_FLAGS ${flags})
20-
list(JOIN CMAKE_REQUIRED_FLAGS " " CMAKE_REQUIRED_FLAGS)
21-
check_cxx_source_compiles("${source}" ${ARGN})
22-
cmake_pop_check_state()
23-
endmacro()
24-
2517
macro(check_cxx_source_links_with_libs libs source)
2618
cmake_push_check_state(RESET)
2719
set(CMAKE_REQUIRED_LIBRARIES "${libs}")

0 commit comments

Comments
 (0)