Skip to content

Commit d5ed408

Browse files
authored
Merge pull request #4817 from eisenhauer/DillFix
Allow Dill to be build or not depending upon the results of that configuration
2 parents bcbb607 + 4f7e2c7 commit d5ed408

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

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/EVPath/EVPath/ip_config.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ get_qual_hostname(char *buf, int len, attr_list attrs,
387387
if (buf[0] == 0) {
388388
/* bloody hell, what do you have to do? */
389389
struct in_addr IP;
390-
extern int h_errno;
391390
char *iface;
392391
if (get_string_attr(attrs, CM_IP_INTERFACE, &iface)){
393392
IP.s_addr = htonl(get_self_ip_iface(trace_func, trace_data, iface));

thirdparty/EVPath/EVPath/qual_hostname.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ get_qual_hostname(void *cm, char *buf, int len, CMtrans_services svc, attr_list
342342
if (buf[0] == 0) {
343343
/* bloody hell, what do you have to do? */
344344
struct in_addr IP;
345-
extern int h_errno;
346345
IP.s_addr = htonl(get_self_ip_addr(cm, svc));
347346
svc->trace_out(cm, "CM<transport> - No hostname yet, trying gethostbyaddr on IP %lx", IP);
348347
if (!is_private_IP(ntohl(IP.s_addr))) {

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)