16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 19:29:19 +02:00

add MacOS ARM64 to CI builds

This commit is contained in:
milek7
2021-01-18 23:04:00 +01:00
parent bba6c8410c
commit 5fcd108b3d
6 changed files with 162 additions and 124 deletions

View File

@@ -12,7 +12,7 @@
set(ASIO_FOUND FALSE)
if(TARGET ASIO::ASIO)
if(TARGET asio::asio)
set(ASIO_FOUND TRUE)
else()
find_package(Threads QUIET)
@@ -38,12 +38,12 @@ else()
endif()
endif()
else()
add_library(ASIO::ASIO INTERFACE IMPORTED GLOBAL)
set_target_properties(ASIO::ASIO PROPERTIES
add_library(asio::asio INTERFACE IMPORTED GLOBAL)
set_target_properties(asio::asio PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "ASIO_STANDALONE"
INTERFACE_INCLUDE_DIRECTORIES "${ASIO_ROOT}/include"
)
target_link_libraries(ASIO::ASIO INTERFACE Threads::Threads)
target_link_libraries(asio::asio INTERFACE Threads::Threads)
set(ASIO_FOUND TRUE)
endif()
endif()