Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Apr 21, 2024
1 parent 5f6eb3c commit 3b86a1c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ string(REPLACE "arm64-v8a" "armv8" ARCH "${ARCH}")

include(${CMAKE_CURRENT_LIST_DIR}/app/conan.cmake)
conan_cmake_configure(GENERATORS cmake)
conan_cmake_autodetect(settings ARCH ${ARCH})
conan_cmake_autodetect(settings_build)
conan_cmake_autodetect(settings_host ARCH ${ARCH})
# inspired from here https://docs.conan.io/en/latest/integrations/cross_platform/android.html
configure_file(app/toolchain.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/toolchain.cmake @ONLY)
conan_cmake_install(PATH_OR_REFERENCE ${CMAKE_CURRENT_LIST_DIR}
BUILD missing
SETTINGS_BUILD compiler.libcxx=libc++
SETTINGS_HOST ${settings} compiler.libcxx=c++_shared
SETTINGS_BUILD ${settings_build} compiler.libcxx=libc++
SETTINGS_HOST ${settings_host} compiler.libcxx=c++_shared
PROFILE_BUILD default
PROFILE_HOST ${CMAKE_CURRENT_LIST_DIR}/conanprofile.txt
ENV CONAN_CMAKE_TOOLCHAIN_FILE=${CMAKE_CURRENT_BINARY_DIR}/toolchain.cmake
Expand Down

0 comments on commit 3b86a1c

Please sign in to comment.