mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
cmake export - fix issue finding zstd config on Windows
This commit is contained in:
@@ -242,6 +242,7 @@ if(WITH_ROCKSDB)
|
|||||||
# find it's zstd dependency on Windows.
|
# find it's zstd dependency on Windows.
|
||||||
# Only do it on Windows, otherwise it might create problems as
|
# Only do it on Windows, otherwise it might create problems as
|
||||||
# findzstd and zstd-config target names do not match.
|
# findzstd and zstd-config target names do not match.
|
||||||
|
# https://github.com/facebook/rocksdb/pull/13975
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(TEMP CMAKE_FIND_PACKAGE_PREFER_CONFIG)
|
set(TEMP CMAKE_FIND_PACKAGE_PREFER_CONFIG)
|
||||||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
|
||||||
|
|||||||
@@ -19,7 +19,20 @@ find_dependency(Eigen3 CONFIG)
|
|||||||
|
|
||||||
if(IFCOPENSHELL_WITH_ROCKSDB)
|
if(IFCOPENSHELL_WITH_ROCKSDB)
|
||||||
find_dependency(zstd CONFIG)
|
find_dependency(zstd CONFIG)
|
||||||
|
|
||||||
|
# Temporaily mess with CMAKE_FIND_PACKAGE_PREFER_CONFIG to help RocksDB
|
||||||
|
# find it's zstd dependency on Windows.
|
||||||
|
# Only do it on Windows, otherwise it might create problems as
|
||||||
|
# findzstd and zstd-config target names do not match.
|
||||||
|
# https://github.com/facebook/rocksdb/pull/13975
|
||||||
|
if(WIN32)
|
||||||
|
set(TEMP CMAKE_FIND_PACKAGE_PREFER_CONFIG)
|
||||||
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)
|
||||||
|
endif()
|
||||||
find_dependency(RocksDB CONFIG)
|
find_dependency(RocksDB CONFIG)
|
||||||
|
if(WIN32)
|
||||||
|
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ${TEMP})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(IFCOPENSHELL_IFCXML)
|
if(IFCOPENSHELL_IFCXML)
|
||||||
|
|||||||
Reference in New Issue
Block a user