fix incorrect 64-bit detection -- powerpc64le doesn't end in 64 but is 64-bit (#8955) main
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 13 Jul 2022 17:11:30 +0000 (10:11 -0700)
committerGitHub <noreply@github.com>
Wed, 13 Jul 2022 17:11:30 +0000 (17:11 +0000)
Signed-off-by: Jacob Lifshay <programmerjake@gmail.com>
cmake/FindANTLR3.cmake

index a357ca90966ee83378ec492695fbfa4d7147b740..abb19bcd4eb2628908ae8e6e1e9ed868768515de 100644 (file)
@@ -97,7 +97,7 @@ if(NOT ANTLR3_FOUND_SYSTEM)
         BUILD_BYPRODUCTS <INSTALL_DIR>/share/config.sub
     )
 
-    if(CMAKE_SYSTEM_PROCESSOR MATCHES ".*64$")
+    if(CMAKE_SIZEOF_VOID_P EQUAL 8)
         set(64bit "--enable-64bit")
     else()
         unset(64bit)