Skip to content

Commit 45f8ee8

Browse files
committed
No need to detect 32-bit systems in CMake
1 parent 84c45f3 commit 45f8ee8

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/signing/CMakeLists.txt

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ target_include_directories(signing
1212
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>/src
1313
)
1414

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-
# probably an oversight by the distribution, it doesn't list these flags in gpgme.pc
20-
message(WARNING "Building on 32-bit system, adding special gpgme definitions")
21-
target_compile_definitions(signing
22-
PRIVATE -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE
23-
)
24-
endif()
15+
# GPGME requires this on 32-bit systems
16+
# https://www.gnupg.org/documentation/manuals/gpgme/Largefile-Support-_0028LFS_0029.html
17+
# probably an oversight by the distribution, it doesn't list these flags in gpgme.pc
18+
message(WARNING "Building on 32-bit system, enabling largefile support")
19+
target_compile_definitions(signing
20+
PRIVATE -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE
21+
)

0 commit comments

Comments
 (0)