Files
pay/android/cmake/FindBoost.cmake
T
tomFlowee fa600058db Update build env to latest Qt and Android NDK/SDK
This upgrades to the latest stable Qt (6.8.3) to my surprise the
translator patch still is required and they didn't fix that bug
for 2 bugfix releases now.
2025-08-02 13:45:24 +02:00

33 lines
1.0 KiB
CMake

# For some unknown reason Boost doesn't get found using the
# cmake shipped 'find_package' when we use cross-compilation.
# So we use a bit of a hack here as we assume the build
# is being done using the docker, so we can just do some
# basic checks and give up if that fails.
if (NOT EXISTS "/opt/android-boost/include/boost/filesystem/path.hpp")
message(FATAL_ERROR "Missing boost headers")
endif()
if (NOT EXISTS "/opt/android-boost/lib/libboost_filesystem.a")
message(FATAL_ERROR "Missing boost static libs")
endif()
set(Boost_FOUND TRUE)
set(Boost_INCLUDE_DIRS /opt/android-boost/include)
set(Boost_LIBRARY_DIRS /opt/android-boost/lib)
set(Boost_LIBRARIES
${Boost_LIBRARY_DIRS}/libboost_filesystem.a
${Boost_LIBRARY_DIRS}/libboost_system.a
${Boost_LIBRARY_DIRS}/libboost_iostreams.a
${Boost_LIBRARY_DIRS}/libboost_thread.a
)
set(Boost_FILESYSTEM_FOUND ON)
set(Boost_SYSTEM_FOUND ON)
set(Boost_iostreams_FOUND ON)
set(Boost_thread_FOUND ON)
set(Boost_VERSION_STRING 1.83.0)
include_directories(${Boost_INCLUDE_DIRS})