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 )