From ea929c0848e2d95a71439e1b3aa0cf350e12bc73 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Thu, 20 Feb 2025 12:39:20 +0000 Subject: [PATCH] scripted-diff: Rename CMake helper module -BEGIN VERIFY SCRIPT- git mv cmake/module/CheckSourceCompilesAndLinks.cmake cmake/module/CheckSourceCompilesWithFlags.cmake sed -i 's|\|CheckSourceCompilesWithFlags|g' $(git grep -l 'CheckSourceCompilesAndLinks') -END VERIFY SCRIPT- --- CMakeLists.txt | 2 +- cmake/crc32c.cmake | 2 +- cmake/introspection.cmake | 2 +- cmake/minisketch.cmake | 2 +- ...pilesAndLinks.cmake => CheckSourceCompilesWithFlags.cmake} | 0 cmake/module/TestAppendRequiredLibraries.cmake | 4 ++-- 6 files changed, 6 insertions(+), 6 deletions(-) rename cmake/module/{CheckSourceCompilesAndLinks.cmake => CheckSourceCompilesWithFlags.cmake} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 185ed4ed711..5945d38c44a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -386,7 +386,7 @@ endif() target_link_options(sanitize_interface INTERFACE ${SANITIZER_LDFLAGS}) if(BUILD_FUZZ_BINARY) - include(CheckSourceCompilesAndLinks) + include(CheckSourceCompilesWithFlags) check_cxx_source_compiles_with_flags(" #include #include diff --git a/cmake/crc32c.cmake b/cmake/crc32c.cmake index ec54e864c04..096ff792e40 100644 --- a/cmake/crc32c.cmake +++ b/cmake/crc32c.cmake @@ -7,7 +7,7 @@ # buildsystem. include(CheckCXXSourceCompiles) -include(CheckSourceCompilesAndLinks) +include(CheckSourceCompilesWithFlags) # Check for __builtin_prefetch support in the compiler. check_cxx_source_compiles(" diff --git a/cmake/introspection.cmake b/cmake/introspection.cmake index ec756207e21..d4ed4866b9c 100644 --- a/cmake/introspection.cmake +++ b/cmake/introspection.cmake @@ -160,7 +160,7 @@ check_cxx_source_compiles(" ) if(NOT MSVC) - include(CheckSourceCompilesAndLinks) + include(CheckSourceCompilesWithFlags) # Check for SSE4.1 intrinsics. set(SSE41_CXXFLAGS -msse4.1) diff --git a/cmake/minisketch.cmake b/cmake/minisketch.cmake index 6feffa7d3a7..102097aacb4 100644 --- a/cmake/minisketch.cmake +++ b/cmake/minisketch.cmake @@ -2,7 +2,7 @@ # Distributed under the MIT software license, see the accompanying # file COPYING or https://opensource.org/license/mit/. -include(CheckSourceCompilesAndLinks) +include(CheckSourceCompilesWithFlags) # Check for clmul instructions support. if(MSVC) diff --git a/cmake/module/CheckSourceCompilesAndLinks.cmake b/cmake/module/CheckSourceCompilesWithFlags.cmake similarity index 100% rename from cmake/module/CheckSourceCompilesAndLinks.cmake rename to cmake/module/CheckSourceCompilesWithFlags.cmake diff --git a/cmake/module/TestAppendRequiredLibraries.cmake b/cmake/module/TestAppendRequiredLibraries.cmake index cb403f1e16d..e15c2b9934d 100644 --- a/cmake/module/TestAppendRequiredLibraries.cmake +++ b/cmake/module/TestAppendRequiredLibraries.cmake @@ -28,7 +28,7 @@ function(test_append_socket_library target) include(CheckCXXSourceCompiles) check_cxx_source_compiles("${check_socket_source}" IFADDR_LINKS_WITHOUT_LIBSOCKET) if(NOT IFADDR_LINKS_WITHOUT_LIBSOCKET) - include(CheckSourceCompilesAndLinks) + include(CheckSourceCompilesWithFlags) check_cxx_source_compiles_with_flags("${check_socket_source}" IFADDR_NEEDS_LINK_TO_LIBSOCKET LINK_LIBRARIES socket ) @@ -83,7 +83,7 @@ function(test_append_atomic_library target) include(CheckCXXSourceCompiles) check_cxx_source_compiles("${check_atomic_source}" STD_ATOMIC_LINKS_WITHOUT_LIBATOMIC) if(NOT STD_ATOMIC_LINKS_WITHOUT_LIBATOMIC) - include(CheckSourceCompilesAndLinks) + include(CheckSourceCompilesWithFlags) check_cxx_source_compiles_with_flags("${check_atomic_source}" STD_ATOMIC_NEEDS_LINK_TO_LIBATOMIC LINK_LIBRARIES atomic )