mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Unify zstd lookup
This commit is contained in:
@@ -227,11 +227,8 @@ if(EMSCRIPTEN)
|
|||||||
target_sources(IfcViewerCore PRIVATE ${ZSTD_DEC_SRC})
|
target_sources(IfcViewerCore PRIVATE ${ZSTD_DEC_SRC})
|
||||||
target_include_directories(IfcViewerCore PRIVATE ${ZSTD_DEC_DIR})
|
target_include_directories(IfcViewerCore PRIVATE ${ZSTD_DEC_DIR})
|
||||||
else()
|
else()
|
||||||
find_library(ZSTD_LIBRARY NAMES zstd libzstd)
|
find_package(zstd CONFIG REQUIRED)
|
||||||
if(NOT ZSTD_LIBRARY)
|
target_link_libraries(IfcViewerCore PUBLIC zstd::libzstd_static)
|
||||||
message(FATAL_ERROR "libzstd not found (needed for .ifcview compression)")
|
|
||||||
endif()
|
|
||||||
target_link_libraries(IfcViewerCore PUBLIC ${ZSTD_LIBRARY})
|
|
||||||
endif()
|
endif()
|
||||||
install(TARGETS IfcViewerCore EXPORT ${IFCOPENSHELL_EXPORT_TARGETS})
|
install(TARGETS IfcViewerCore EXPORT ${IFCOPENSHELL_EXPORT_TARGETS})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user