mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Fix cmake error (#2871)
Use the correct target name when setting properties on cereal.
This commit is contained in:
@@ -511,9 +511,11 @@ find_package(glfw3 REQUIRED)
|
|||||||
|
|
||||||
# Find the Cereal serialization library
|
# Find the Cereal serialization library
|
||||||
find_package(cereal REQUIRED)
|
find_package(cereal REQUIRED)
|
||||||
set_target_properties(cereal PROPERTIES IMPORTED_GLOBAL TRUE)
|
|
||||||
if (NOT TARGET cereal::cereal)
|
if (NOT TARGET cereal::cereal)
|
||||||
|
set_target_properties(cereal PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||||
add_library(cereal::cereal ALIAS cereal)
|
add_library(cereal::cereal ALIAS cereal)
|
||||||
|
else ()
|
||||||
|
set_target_properties(cereal::cereal PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# l10n
|
# l10n
|
||||||
|
|||||||
Reference in New Issue
Block a user