Use namespaces to link against libcereal >= 1.3.1 (#1596)

0ffcfd8393

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
ovlach 2023-07-27 15:58:19 +02:00 committed by GitHub
parent 910d79ae6f
commit df819b2778
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View file

@ -503,6 +503,9 @@ find_package(glfw3 REQUIRED)
# Find the Cereal serialization library
find_package(cereal REQUIRED)
if (NOT TARGET cereal::cereal)
add_library(cereal::cereal ALIAS cereal)
endif ()
# l10n
set(L10N_DIR "${SLIC3R_RESOURCES_DIR}/i18n")