Skip to content

Commit c7961dd

Browse files
committed
Fix MacOS Static build without FFI
1 parent bcbb607 commit c7961dd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

thirdparty/EVPath/EVPath/EVPathConfigCommon.cmake.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ find_dependency(atl @atl_VERSION@)
44
find_dependency(ffs @ffs_VERSION@)
55

66
if(NOT @BUILD_SHARED_LIBS@)
7-
find_dependency(dill @dill_VERSION@)
7+
if(@HAVE_COD_H@)
8+
find_dependency(dill @dill_VERSION@)
9+
endif()
810

911
if(@NVML_FOUND@)
1012
find_dependency(NVML)

thirdparty/ffs/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ set(BUILD_TESTING OFF)
44
set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_CMAKEDIR}/thirdparty")
55

66
set(FFS_USE_ATL ON CACHE INTERNAL "")
7-
set(FFS_USE_DILL ON CACHE INTERNAL "")
7+
if(TARGET dill::dill)
8+
set(FFS_USE_DILL ON CACHE INTERNAL "")
9+
else()
10+
set(FFS_USE_DILL OFF CACHE INTERNAL "")
11+
endif()
812
set(FFS_LIBRARIES_ONLY ON CACHE INTERNAL "")
913
set(FFS_QUIET ON CACHE INTERNAL "")
1014
set(FFS_LIBRARY_PREFIX adios2${ADIOS2_LIBRARY_SUFFIX}_ CACHE INTERNAL "")

0 commit comments

Comments
 (0)