Skip to content

Commit

Permalink
Attempt to build for ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
Laky-64 committed Feb 4, 2024
1 parent 5bc69d5 commit f204932
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions cmake/FindBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,30 @@ if (WINDOWS_x86_64)
set(BOOST_TOOLSET msvc)
set(BOOST_CXX_FLAGS -D_ITERATOR_DEBUG_LEVEL=0)
set(BOOST_LINK static)
elseif (LINUX_x86_64)
elseif (IS_LINUX)
set(BOOST_TARGET linux)
set(BOOST_CXX_FLAGS
if (LINUX_x86_64)
set(BOOST_CXX_FLAGS
-D_LIBCPP_ABI_NAMESPACE=Cr
-D_LIBCPP_ABI_VERSION=2
-D_LIBCPP_DISABLE_AVAILABILITY
-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE
-nostdinc++
-isystem${LIBCXX_INCLUDE}/include
-fPIC
)
)
elseif (LINUX_ARM64)
set(BOOST_CXX_FLAGS
-D_LIBCPP_ABI_NAMESPACE=Cr
-D_LIBCPP_ABI_VERSION=2
-D_LIBCPP_DISABLE_AVAILABILITY
-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE
-nostdinc++
-isystem${LIBCXX_INCLUDE}/include
-fPIC
)
set(BOOST_ARCH arm)
endif ()
elseif (MACOS_ARM64)
set(BOOST_TARGET darwin)
execute_process(COMMAND xcrun --sdk macosx --show-sdk-path
Expand Down

0 comments on commit f204932

Please sign in to comment.