Use namespaces to link against libcereal >= 1.3.1
Create an alias for previous versions.
This commit is contained in:
parent
3a821d6752
commit
0ffcfd8393
4 changed files with 6 additions and 3 deletions
|
@ -506,6 +506,9 @@ endif ()
|
|||
|
||||
# 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}/localization")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue