Build environment: Fix compilation of boost on Linux 32bit
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 29 Aug 2018 12:11:32 +0000 (14:11 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 29 Aug 2018 12:11:32 +0000 (14:11 +0200)
build_files/build_environment/cmake/boost.cmake

index 959a6e2263737343e323ca9fd765e80c939df39c..33bfa1d4e82106d732af834d9d37ede536cfc246 100644 (file)
@@ -63,6 +63,11 @@ else()
        set(BOOST_BUILD_COMMAND ./b2)
        set(BOOST_BUILD_OPTIONS cxxflags=${PLATFORM_CXXFLAGS} --disable-icu boost.locale.icu=off)
        set(BOOST_PATCH_COMMAND echo .)
+       if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
+               set(BOOST_ADDRESS_MODEL 64)
+       else()
+               set(BOOST_ADDRESS_MODEL 32)
+       endif()
 endif()
 
 set(BOOST_OPTIONS