8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b042f6 commit 2913d71Copy full SHA for 2913d71
src/signing/CMakeLists.txt
@@ -11,3 +11,13 @@ target_link_libraries(signing
11
target_include_directories(signing
12
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>/src
13
)
14
+
15
+# won't work before project()! https://stackoverflow.com/a/39258832
16
+if(CMAKE_SIZEOF_VOID_P EQUAL 4)
17
+ # GPGME requires this on 32-bit systems
18
+ # https://www.gnupg.org/documentation/manuals/gpgme/Largefile-Support-_0028LFS_0029.html
19
+ message(WARNING "Building on 32-bit system, adding special gpgme definitions")
20
+ target_compile_definitions(signing
21
+ PUBLIC -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE
22
+ )
23
+endif()
0 commit comments