create patch for cmake cache checks so that it can use CheckTypeSize from multiple contexts

This commit is contained in:
ohyzha
2024-10-31 14:44:59 +02:00
parent 5695fd77be
commit a99d1314c3
3 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
CMakeChecksCache/CheckTypeSize.cmake | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/CMakeChecksCache/CheckTypeSize.cmake b/CMakeChecksCache/CheckTypeSize.cmake
index ee56b64..49bf66a 100644
--- a/CMakeChecksCache/CheckTypeSize.cmake
+++ b/CMakeChecksCache/CheckTypeSize.cmake
@@ -20,12 +20,11 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
+include(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
include_guard(GLOBAL)
-
cmake_minimum_required(VERSION 3.11)
include(DumpCMakeVariables)
-include(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)
macro(check_type_size type variable)
_check_type_size(${type} ${variable})