From f1946432ee0ce5407feca8c236693b1d27772896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Blissing?= Date: Sat, 26 Jun 2021 23:17:28 +0200 Subject: [PATCH] Check for existence of long long --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 383cf3b..e686341 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,9 @@ include(CMakePackageConfigHelpers) include(CMakeDependentOption) include(GNUInstallDirs) include(CTest) +include(CheckTypeSize) +check_type_size("long long" LONG_LONG LANGUAGE CXX) cmake_dependent_option(PUGIXML_USE_VERSIONED_LIBDIR "Use a private subdirectory to install the headers and libraries" OFF @@ -118,6 +120,7 @@ if (BUILD_SHARED_LIBS) ${PUGIXML_BUILD_DEFINES} PRIVATE $<$:PUGIXML_API=__declspec\(dllexport\)> + $<$:PUGIXML_HAS_LONG_LONG> $<$:PUGIXML_WCHAR_MODE> $<$:PUGIXML_COMPACT> $<$:PUGIXML_NO_XPATH> @@ -145,6 +148,7 @@ if (NOT BUILD_SHARED_LIBS OR PUGIXML_BUILD_SHARED_AND_STATIC_LIBS) PUBLIC ${PUGIXML_BUILD_DEFINES} PRIVATE + $<$:PUGIXML_HAS_LONG_LONG> $<$:PUGIXML_WCHAR_MODE> $<$:PUGIXML_COMPACT> $<$:PUGIXML_NO_XPATH>