Skip to content

Commit 586f4e9

Browse files
committed
Amend 64-bit check in CMake build file to a 32-bit check.
Now, we no longer need to be at least 64-bit, but need to be at least 32-bit. This check is probably not that necessary but I've left it in just in case ;)
1 parent d80961e commit 586f4e9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ set(
3939
set(LIBSXBP_ESCAPED_VERSION_STRING "\"${LIBSXBP_VERSION_STRING}\"")
4040
# end basic metadata
4141

42-
# this is a 64-bit project, so check now to make sure we're 64-bit, issue warning if not
43-
if(CMAKE_SIZEOF_VOID_P LESS 8)
42+
# must be running on an architecture of at least 32 bits
43+
if(CMAKE_SIZEOF_VOID_P LESS 4)
4444
message(
4545
WARNING
46-
"[sxbp] It looks like this system's architecture is not at least 64-bit.\n"
47-
"libsxbp requires a system with an architecture of at least 64 bits!\n"
48-
"We'll continue trying to compile anyway, be sure to run the unit tests after."
46+
"[sxbp] It looks like this system's architecture is not at least 32-bit.\n"
47+
" libsxbp requires a system with an architecture of at least 32 bits!\n"
48+
" We'll continue trying to compile anyway, but may fail.\n"
49+
" Be sure to run the unit tests after!"
4950
)
5051
endif()
5152

0 commit comments

Comments
 (0)