From c319ee20ebe68a7ca0f2262d2e3400ea363781a8 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Sun, 7 Jul 2024 23:15:05 +0000 Subject: [PATCH] Remove loopholes check in cmake --- cmake/check.cpp | 27 --------------------------- cmake/cserverConfig.cmake.in | 6 ------ 2 files changed, 33 deletions(-) delete mode 100644 cmake/check.cpp diff --git a/cmake/check.cpp b/cmake/check.cpp deleted file mode 100644 index bb9ddad..0000000 --- a/cmake/check.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include -#include -#include - -struct SomeStruct { - explicit constexpr SomeStruct(auto&& arg) { - arg.Method(42); // NOLINT - }; -}; - -struct Injector { - template {}>{}> - auto Method(T&&) const -> void; -}; - -template -inline constexpr auto Use() { - std::ignore = __builtin_constant_p(T{Args...}); -}; - -template -consteval auto Ignore() {}; - -auto main() -> int { - Ignore())>(); - static_assert(std::is_same_v{})), utempl::TypeList>); -}; diff --git a/cmake/cserverConfig.cmake.in b/cmake/cserverConfig.cmake.in index 6e43fcf..9c15f36 100644 --- a/cmake/cserverConfig.cmake.in +++ b/cmake/cserverConfig.cmake.in @@ -2,9 +2,3 @@ include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") check_required_components("@PROJECT_NAME@") - -try_compile(loopholes_body_inject - SOURCES "${CMAKE_CURRENT_LIST_DIR}/check.cpp") -if(NOT loopholes_body_inject) - message(FATAL_ERROR "The Compiler Doesn't Support Retrieval Of Information Via Loopholes.") -endif()