[mlpack-git] master: Changes to CMakeLists to solve issue #553: Clean build in 32-bit systems (e3d59d6)

gitdub at mlpack.org gitdub at mlpack.org
Fri Mar 11 19:26:31 EST 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/05c6551fa6990276e03a59b3b3e40f23d137e546...3b5e67f9d9fc8d7eea773a2e04f70f72f712014e

>---------------------------------------------------------------

commit e3d59d6cc92f4d1eca116d0077ed3b0f12a368e4
Author: na1taneja2821 <namantaneja821 at gmail.com>
Date:   Sat Mar 12 05:56:31 2016 +0530

    Changes to CMakeLists to solve issue #553: Clean build in 32-bit systems


>---------------------------------------------------------------

e3d59d6cc92f4d1eca116d0077ed3b0f12a368e4
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6afd2c4..329ec01 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -149,6 +149,9 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
         "mlpack will still work without ARMA_64BIT_WORD defined, but will not "
         "scale to matrices with more than 4 billion elements.")
   endif(ARMA_HAS_64BIT_WORD EQUAL 0)
+else(CMAKE_SIZEOF_VOID_P EQUAL 8)
+  # Adding the ARMA_32BIT_WORD preprocessor for 32 bit machines for clean build
+  add_definitions(-DARMA_32BIT_WORD)  
 endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
 
 # On Windows, Armadillo should be using LAPACK and BLAS but we still need to




More information about the mlpack-git mailing list