cmake: unbundle half library (#1393)

This commit is contained in:
Alexandre Bouvier
2024-10-18 04:52:57 +00:00
committed by GitHub
parent ddc35639a8
commit 9814a1b788
3 changed files with 35 additions and 3 deletions

View File

@@ -142,8 +142,11 @@ if (WIN32)
endif()
# half
add_library(half INTERFACE)
target_include_directories(half INTERFACE half/include)
if (NOT TARGET half::half)
add_library(half INTERFACE)
target_include_directories(half INTERFACE half/include)
add_library(half::half ALIAS half)
endif()
if (APPLE)
# date