Use LESS comparison to test if system is at least 64bit.

Indeed this is clearer and better.
This commit is contained in:
Markus Blatt 2023-10-25 08:17:20 +02:00
parent 5ecc7caa23
commit 223e8c6877

View File

@ -110,8 +110,8 @@ macro (OpmInitDirVars)
endif (COMMAND dir_hook)
endmacro ()
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
message(FATAL_ERROR "OPM will only work correctly on 64bit systems!")
if("${CMAKE_SIZEOF_VOID_P}" LESS 8)
message(FATAL_ERROR "OPM will only work correctly on 64bit (or higher) systems!")
endif()
OpmInitProjVars ()